Browse Source

Refactoring

pull/5034/head
Kalutka Zhenya 5 years ago
parent
commit
c7b1d70fbd
  1. 2
      ui-ngx/src/app/modules/home/components/entity/entity.component.ts

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

@ -50,6 +50,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
@Input() @Input()
set isEdit(isEdit: boolean) { set isEdit(isEdit: boolean) {
this.isEditValue = isEdit; this.isEditValue = isEdit;
this.cd.markForCheck();
this.updateFormState(); this.updateFormState();
} }
@ -107,7 +108,6 @@ export abstract class EntityComponent<T extends BaseData<HasId>,
} else { } else {
this.entityForm.disable({emitEvent: false}); this.entityForm.disable({emitEvent: false});
} }
this.cd.markForCheck();
} }
} }

Loading…
Cancel
Save