From 4f479bcc0247dbdd78190d89b00048bb57fc2312 Mon Sep 17 00:00:00 2001 From: imamSidero Date: Tue, 7 Mar 2023 07:38:21 +0000 Subject: [PATCH] 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 --- .../pages/properties-assignment/properties-assignment.page.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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); }; -- 2.16.6