Commit 77c6babff6662cf462cbce25cfc834daf352dafa

Authored by Igor Kulikov
1 parent e3e860fe

Fix tenant isolated checkbox fields

@@ -69,6 +69,20 @@ export class TenantComponent extends ContactBasedComponent<Tenant> { @@ -69,6 +69,20 @@ export class TenantComponent extends ContactBasedComponent<Tenant> {
69 this.entityForm.patchValue({additionalInfo: {description: entity.additionalInfo ? entity.additionalInfo.description : ''}}); 69 this.entityForm.patchValue({additionalInfo: {description: entity.additionalInfo ? entity.additionalInfo.description : ''}});
70 } 70 }
71 71
  72 + updateFormState() {
  73 + if (this.entityForm) {
  74 + if (this.isEditValue) {
  75 + this.entityForm.enable({emitEvent: false});
  76 + if (!this.isAdd) {
  77 + this.entityForm.get('isolatedTbCore').disable({emitEvent: false});
  78 + this.entityForm.get('isolatedTbRuleEngine').disable({emitEvent: false});
  79 + }
  80 + } else {
  81 + this.entityForm.disable({emitEvent: false});
  82 + }
  83 + }
  84 + }
  85 +
72 onTenantIdCopied(event) { 86 onTenantIdCopied(event) {
73 this.store.dispatch(new ActionNotificationShow( 87 this.store.dispatch(new ActionNotificationShow(
74 { 88 {