From 7193e96b30ccaa4ed06c80a4861c91d341e0d910 Mon Sep 17 00:00:00 2001 From: franciscovila Date: Thu, 23 Feb 2023 10:46:25 +0000 Subject: Setting Tosca Function on top of unsaved value causes problems Issue-ID: SDC-4405 Signed-off-by: franciscovila Change-Id: I688fafa39338900f6248213c27975ced113f5ee9 --- .../dynamic-property/dynamic-property.component.html | 6 +++--- .../dynamic-property/dynamic-property.component.ts | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property') diff --git a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.html b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.html index 8e7e3a1282..956bb05356 100644 --- a/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.html +++ b/catalog-ui/src/app/ng2/components/logic/properties-table/dynamic-property/dynamic-property.component.html @@ -21,11 +21,11 @@
- +
{{property.name}}
- +
{{property.name}}
@@ -44,7 +44,7 @@
- + { this.property.updateValueObj(event.value, event.isValid); + if (this.property.hasValueObjChanged()) { + this.checkboxDisabled = true; + } + if (event.value === '' || event.value === null || event.value === undefined) { + this.checkboxDisabled = false; + } this.emitter.emit(); }; -- cgit 1.2.3-korg