diff options
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js | 8 | ||||
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js | 2 |
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) { |