From: imamSidero Date: Tue, 7 Mar 2023 07:38:21 +0000 (+0000) Subject: Fix issue on tosca button enable/disable functionality X-Git-Tag: 1.12.3~18 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=4f479bcc0247dbdd78190d89b00048bb57fc2312;hp=e3f4b966a2105841a40450ca13f9e6937868107d;p=sdc.git Fix issue on tosca button enable/disable functionality Fixed tosca button functionality to enabled/disabled as per the main checkbox as well as the child checkbox Issue-ID: SDC-4425 Signed-off-by: Imam hussain Change-Id: I9f215432c20a89e90f6c1293835e30b359a05db0 --- diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts index 7fef3532a3..a1e4f415be 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts @@ -1200,6 +1200,8 @@ export class PropertiesAssignmentComponent { //used for declare button, to keep count of newly checked properties (and ignore declared properties) updateCheckedPropertyCount = (increment: boolean): void => { this.checkedPropertiesCount += (increment) ? 1 : -1; + this.checkedToscaCount = 0; + this.enableToscaFunction = false; console.debug("CheckedProperties count is now.... " + this.checkedPropertiesCount); };