Commit 77c6babff6662cf462cbce25cfc834daf352dafa
1 parent
e3e860fe
Fix tenant isolated checkbox fields
Showing
1 changed file
with
14 additions
and
0 deletions
... | ... | @@ -69,6 +69,20 @@ export class TenantComponent extends ContactBasedComponent<Tenant> { |
69 | 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 | 86 | onTenantIdCopied(event) { |
73 | 87 | this.store.dispatch(new ActionNotificationShow( |
74 | 88 | { | ... | ... |