Fix widget library details

This commit is contained in:
Vladyslav_Prykhodko 2020-04-06 11:46:56 +03:00
parent 2ca4b78cf9
commit daa0c30e11
2 changed files with 8 additions and 11 deletions

View File

@ -16,7 +16,7 @@
--> -->
<tb-details-panel fxFlex <tb-details-panel fxFlex
[headerTitle]="entity?.name" [headerTitle]="entity?.name || entity?.title"
headerSubtitle="{{ translations.details | translate }}" headerSubtitle="{{ translations.details | translate }}"
[isReadOnly]="entitiesTableConfig.detailsReadonly(entity)" [isReadOnly]="entitiesTableConfig.detailsReadonly(entity)"
[isEdit]="isEditValue" [isEdit]="isEditValue"

View File

@ -15,6 +15,7 @@
/// ///
import { import {
AfterViewInit,
ChangeDetectionStrategy, ChangeDetectionStrategy,
Component, Component,
ComponentFactoryResolver, ComponentFactoryResolver,
@ -23,28 +24,24 @@ import {
OnDestroy, OnDestroy,
OnInit, OnInit,
Output, Output,
ViewChild,
ViewChildren,
QueryList, QueryList,
ContentChildren, AfterViewInit ViewChild,
ViewChildren
} from '@angular/core'; } from '@angular/core';
import { PageComponent } from '@shared/components/page.component'; import { PageComponent } from '@shared/components/page.component';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state'; import { AppState } from '@core/core.state';
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; import { EntityTableConfig } from '@home/models/entity/entities-table-config.models';
import { BaseData, HasId } from '@shared/models/base-data'; import { BaseData, HasId } from '@shared/models/base-data';
import { import { EntityType, EntityTypeResource, EntityTypeTranslation } from '@shared/models/entity-type.models';
EntityType,
EntityTypeResource,
EntityTypeTranslation
} from '@shared/models/entity-type.models';
import { NgForm } from '@angular/forms'; import { NgForm } from '@angular/forms';
import { EntityComponent } from './entity.component'; import { EntityComponent } from './entity.component';
import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; import { TbAnchorComponent } from '@shared/components/tb-anchor.component';
import { EntityAction } from '@home/models/entity/entity-component.models'; import { EntityAction } from '@home/models/entity/entity-component.models';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { MatTabGroup, MatTab } from '@angular/material/tabs'; import { MatTab, MatTabGroup } from '@angular/material/tabs';
import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component'; import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component';
import { WidgetsBundle } from '@shared/models/widgets-bundle.model';
@Component({ @Component({
selector: 'tb-entity-details-panel', selector: 'tb-entity-details-panel',
@ -84,7 +81,7 @@ export class EntityDetailsPanelComponent extends PageComponent implements OnInit
translations: EntityTypeTranslation; translations: EntityTypeTranslation;
resources: EntityTypeResource; resources: EntityTypeResource;
entity: BaseData<HasId>; entity: BaseData<HasId> | WidgetsBundle;
private currentEntityId: HasId; private currentEntityId: HasId;
private entityActionSubscription: Subscription; private entityActionSubscription: Subscription;