Add Support for node_filters
[sdc.git] / catalog-ui / src / app / ng2 / components / logic / service-dependencies / service-dependencies.component.ts
index f3fd363..4957824 100644 (file)
@@ -315,7 +315,8 @@ export class ServiceDependenciesComponent {
         this.topologyTemplateService.createServiceFilterConstraints(
             this.compositeService.uniqueId,
             this.currentServiceInstance.uniqueId,
-            newRuleToCreate
+            newRuleToCreate,
+            this.compositeService.componentType
         ).subscribe( (response) => {
             this.updateRulesListEvent.emit(response.properties);
             this.isLoading = false;
@@ -331,7 +332,8 @@ export class ServiceDependenciesComponent {
         this.topologyTemplateService.updateServiceFilterConstraints(
             this.compositeService.uniqueId,
             this.currentServiceInstance.uniqueId,
-            allRulesToUpdate
+            allRulesToUpdate,
+            this.compositeService.componentType
         ).subscribe((response) => {
             this.updateRulesListEvent.emit(response.properties);
             this.isLoading = false;
@@ -354,7 +356,8 @@ export class ServiceDependenciesComponent {
         this.topologyTemplateService.deleteServiceFilterConstraints(
             this.compositeService.uniqueId,
             this.currentServiceInstance.uniqueId,
-            index
+            index,
+            this.compositeService.componentType
         ).subscribe( (response) => {
             this.updateRulesListEvent.emit(response.properties);
             this.isLoading = false;