diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2019-03-26 13:59:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-26 13:59:22 +0000 |
commit | 152eda99f84a24f5ac0c6ca8a96e243f75b07a6d (patch) | |
tree | 49b8fc6661815a0445ab50f5f0ad7ac61493076b /vid-app-common/src/main/webapp | |
parent | c559fdca92f31300a341ba56216eec9ab0a5a884 (diff) | |
parent | 55e9181c17748a09f57d0a7823fb5fb10a0bda65 (diff) |
Merge "Retrieve worfklows by model"
Diffstat (limited to 'vid-app-common/src/main/webapp')
2 files changed, 4 insertions, 4 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js index 88caef29e..a071a58de 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/modals/new-change-management/new-change-management.controller.js @@ -660,8 +660,8 @@ }; vm.loadRemoteWorkFlows = function () { - let vnfNames = vm.changeManagement.vnfNames.map(vnfName => vnfName.name); - return changeManagementService.getSOWorkflows(vnfNames) + let vnfModelIDs = vm.changeManagement.vnfNames.map(vnfName => vnfName.modelVersionId); + return changeManagementService.getSOWorkflows(vnfModelIDs) .then(function (response) { vm.remoteWorkflows = response.data || []; }).catch(function (error) { diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js index 2a06e75b1..4b45b891d 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/change-management.service.js @@ -41,8 +41,8 @@ }); }; - this.getSOWorkflows = function (vnfNames) { - return $http.get(COMPONENT.GET_SO_WORKFLOWS, {params: {vnfName: vnfNames}}) + this.getSOWorkflows = function (vnfIDs) { + return $http.get(COMPONENT.GET_SO_WORKFLOWS, {params: {vnfModelId: vnfIDs}}) .success(function (response) { return {data: response}; }).catch(function (ex) { |