Fix tenant isolated checkbox fields
This commit is contained in:
parent
e3e860fe3f
commit
77c6babff6
@ -69,6 +69,20 @@ export class TenantComponent extends ContactBasedComponent<Tenant> {
|
|||||||
this.entityForm.patchValue({additionalInfo: {description: entity.additionalInfo ? entity.additionalInfo.description : ''}});
|
this.entityForm.patchValue({additionalInfo: {description: entity.additionalInfo ? entity.additionalInfo.description : ''}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateFormState() {
|
||||||
|
if (this.entityForm) {
|
||||||
|
if (this.isEditValue) {
|
||||||
|
this.entityForm.enable({emitEvent: false});
|
||||||
|
if (!this.isAdd) {
|
||||||
|
this.entityForm.get('isolatedTbCore').disable({emitEvent: false});
|
||||||
|
this.entityForm.get('isolatedTbRuleEngine').disable({emitEvent: false});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.entityForm.disable({emitEvent: false});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onTenantIdCopied(event) {
|
onTenantIdCopied(event) {
|
||||||
this.store.dispatch(new ActionNotificationShow(
|
this.store.dispatch(new ActionNotificationShow(
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user