From a43d3f2fd29c402c6899833768a87d04608d8cbc Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 10 Apr 2020 17:24:13 +0300 Subject: [PATCH] UI: Minor improvements --- .../app/modules/home/components/entity/entity.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/entity/entity.component.ts b/ui-ngx/src/app/modules/home/components/entity/entity.component.ts index 5ad569c45e..d98bcd3adf 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity.component.ts +++ b/ui-ngx/src/app/modules/home/components/entity/entity.component.ts @@ -41,7 +41,7 @@ export abstract class EntityComponent, @Input() set entitiesTableConfig(entitiesTableConfig: C) { - this.entitiesTableConfigValue = entitiesTableConfig; + this.setEntitiesTableConfig(entitiesTableConfig); } get entitiesTableConfig(): C { @@ -120,6 +120,10 @@ export abstract class EntityComponent, return formValue; } + protected setEntitiesTableConfig(entitiesTableConfig: C) { + this.entitiesTableConfigValue = entitiesTableConfig; + } + abstract buildForm(entity: T): FormGroup; abstract updateForm(entity: T);