aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-07-17 13:26:12 +0300
committerIttay Stern <ittay.stern@att.com>2019-07-18 02:00:08 +0000
commit97cffb810fcf3d3f02d814827f24adc090cf8e2e (patch)
treefee8c342942a667f3128d1925649d6f83064427b /vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js
parentdb98c7976e57f8bacbcc93b802b4d05b1db7b8cf (diff)
Merge from ecomp 3374149f - AngularJS UI
Issue-ID: VID-378 Change-Id: I6b3243b492009035c911f63b93258ea76938fcb9 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js')
-rw-r--r--vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js22
1 files changed, 16 insertions, 6 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js b/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js
index d1a6ca5e4..d7b7bab33 100644
--- a/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/controller/deleteResumeDialogController.js
@@ -20,8 +20,8 @@
"use strict";
-var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $timeout, $log,
- DeleteResumeService, CreationService, DataService, UtilityService) {
+var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $timeout, $log, DataService,
+ DeleteResumeService, CreationService, UtilityService) {
$scope.isDialogVisible = false;
$scope.summaryControl = {};
@@ -29,11 +29,12 @@ var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $t
var callbackFunction = undefined;
var componentId = undefined;
+ var volumeGroups = undefined;
$scope.dialogMethod = COMPONENT.DELETE;
$scope.$on(COMPONENT.DELETE_RESUME_COMPONENT, function(event, request) {
- $scope.isE2EService = false;
+ $scope.isE2EService = false;
$scope.isDataVisible = false;
$scope.isSpinnerVisible = false;
$scope.isErrorVisible = false;
@@ -44,7 +45,7 @@ var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $t
$scope.serviceStatus = request.serviceStatus;
callbackFunction = request.callbackFunction;
componentId = request.componentId;
-
+ volumeGroups = request.volumeGroups ? request.volumeGroups : [];
DeleteResumeService.initializeComponent(request.componentId);
$scope.componentName = DeleteResumeService.getComponentDisplayName();
@@ -116,8 +117,17 @@ var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $t
CreationService.initializeComponent(componentId);
CreationService.setInventoryInfo();
- var requestDetails = CreationService.getMsoRequestDetails($scope.userProvidedControl.getList());
+ var parameterList = $scope.userProvidedControl.getList();
+
+ if (volumeGroups && volumeGroups.length > 0) {
+ var volumeGroupList = FIELD.PARAMETER.AVAILABLE_VOLUME_GROUP;
+ volumeGroupList.value = _.map(volumeGroups, function (volumeGroup) {
+ return volumeGroup.name;
+ });
+ parameterList.push(volumeGroupList);
+ }
+ var requestDetails = CreationService.getMsoRequestDetails(parameterList);
$scope.$broadcast(COMPONENT.MSO_CREATE_REQ, {
url : CreationService.getMsoUrl(),
@@ -147,5 +157,5 @@ var deleteResumeDialogController = function( COMPONENT, FIELD, $scope, $http, $t
}
appDS2.controller("deleteResumeDialogController", [ "COMPONENT", "FIELD", "$scope", "$http",
- "$timeout", "$log", "DeleteResumeService","CreationService", "DataService", "UtilityService",
+ "$timeout", "$log", "DataService", "DeleteResumeService","CreationService", "UtilityService",
deleteResumeDialogController]);