summaryrefslogtreecommitdiffstats
path: root/usecaseui-lcm/src/main/webapp/app
diff options
context:
space:
mode:
authorLuji7 <lu.ji3@zte.com.cn>2017-11-14 17:19:31 +0800
committerLuji7 <lu.ji3@zte.com.cn>2017-11-14 17:20:18 +0800
commite65cfcdec756fc4a1b82191bc4e927984272dfae (patch)
tree2d50e6d27d38ff550ede529d08000ee06b2412bb /usecaseui-lcm/src/main/webapp/app
parent05c280ba974ead95e29d367a21ab781a1cfb657e (diff)
Fix delete service issue.
Change-Id: I9f387e5e1d31e1341820b18d99154fa9bf081ec8 Issue-id: USECASEUI-55 Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'usecaseui-lcm/src/main/webapp/app')
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js8
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js2
2 files changed, 7 insertions, 3 deletions
diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js
index 79e62c02..f78f7ce0 100644
--- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js
+++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js
@@ -220,11 +220,15 @@
});
},
- deleteService: function (serviceId, successFun) {
+ deleteService: function (serviceId, customer, serviceType, successFun) {
+ var requestBody = {
+ globalSubscriberId: customer.id,
+ serviceType: serviceType.value
+ };
return $http({
url: url+'/services/' + serviceId,
method: 'DELETE',
- data: null,
+ data: JSON.stringify(requestBody),
headers: uuiHeaders
}).then(function(response){
console.log('delete response...');
diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js
index 8917f60d..498d0ac7 100644
--- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js
+++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js
@@ -133,7 +133,7 @@ app.controller('lcmCtrl', ['$scope', '$uibModal', '$log', '$http', '$timeout', '
}
openServiceProgressDialog(serviceId, operationId, 'Delete Service', successFun, failFun);
}
- ServiceTemplateService.deleteService(serviceInstance.serviceInstanceId, successFun);
+ ServiceTemplateService.deleteService(serviceInstance.serviceInstanceId, ctrl.customer, ctrl.serviceType, successFun);
};
ctrl.packageOnboard = function (onboardPackage) {