Browse Source

UI: Minor improvements

pull/2663/head
Igor Kulikov 7 years ago
parent
commit
a43d3f2fd2
  1. 6
      ui-ngx/src/app/modules/home/components/entity/entity.component.ts

6
ui-ngx/src/app/modules/home/components/entity/entity.component.ts

@ -41,7 +41,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
@Input() @Input()
set entitiesTableConfig(entitiesTableConfig: C) { set entitiesTableConfig(entitiesTableConfig: C) {
this.entitiesTableConfigValue = entitiesTableConfig; this.setEntitiesTableConfig(entitiesTableConfig);
} }
get entitiesTableConfig(): C { get entitiesTableConfig(): C {
@ -120,6 +120,10 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
return formValue; return formValue;
} }
protected setEntitiesTableConfig(entitiesTableConfig: C) {
this.entitiesTableConfigValue = entitiesTableConfig;
}
abstract buildForm(entity: T): FormGroup; abstract buildForm(entity: T): FormGroup;
abstract updateForm(entity: T); abstract updateForm(entity: T);

Loading…
Cancel
Save