Fix issue on tosca button enable/disable functionality 56/133556/1
authorimamSidero <imam.hussain@est.tech>
Tue, 7 Mar 2023 07:38:21 +0000 (07:38 +0000)
committerimamSidero <imam.hussain@est.tech>
Tue, 7 Mar 2023 07:38:21 +0000 (07:38 +0000)
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 <imam.hussain@est.tech>
Change-Id: I9f215432c20a89e90f6c1293835e30b359a05db0

catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts

index 7fef353..a1e4f41 100644 (file)
@@ -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);
     };