From 7a90c5d169d21ff2bd4282030ec692ce7784259c Mon Sep 17 00:00:00 2001 From: Ingo Date: Wed, 6 Dec 2023 09:25:25 +0100 Subject: [PATCH] SNRGY-2931 fix disabled omit-empty --- .../dialogs/device-types-content-variable-dialog.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/modules/metadata/device-types-overview/device-types/dialogs/device-types-content-variable-dialog.component.ts b/src/app/modules/metadata/device-types-overview/device-types/dialogs/device-types-content-variable-dialog.component.ts index df599165..c6982d3b 100644 --- a/src/app/modules/metadata/device-types-overview/device-types/dialogs/device-types-content-variable-dialog.component.ts +++ b/src/app/modules/metadata/device-types-overview/device-types/dialogs/device-types-content-variable-dialog.component.ts @@ -256,8 +256,9 @@ export class DeviceTypesContentVariableDialogComponent implements OnInit { aspect_id: [{disabled: true, value: this.contentVariable.aspect_id}], function_id: [{disabled: true, value: this.contentVariable.function_id}], is_void: [{disabled: true, value: this.contentVariable.is_void}], - emit_empty: [{disabled: true, value: !!this.contentVariable.omit_empty}], + omit_empty: [!!this.contentVariable.omit_empty], }); + this.firstFormGroup.get("omit_empty")?.disable(); //[{disabled: true, value: !!this.contentVariable.omit_empty}], doesn't work } else { this.firstFormGroup = this._formBuilder.group( {