summaryrefslogtreecommitdiffstats
path: root/usecaseui-lcm/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-lcm/src/main/webapp')
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/ServiceTemplateService.js7
-rw-r--r--usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/controller/lcmController.js24
2 files changed, 4 insertions, 27 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 634cf7c7..c9357618 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
@@ -118,8 +118,8 @@
var vimInfos = response.data;
var result = vimInfos.map(function (vim) {
return {
- name: vim['cloud-owner'] + '-' + vim['cloud-region-id'],
- value: vim['cloud-owner'] + '-' + vim['cloud-region-id']
+ name: vim['cloud-owner'] + '_' + vim['cloud-region-id'],
+ value: vim['cloud-owner'] + '_' + vim['cloud-region-id']
};
});
processFun(result);
@@ -257,10 +257,9 @@
});
},
- packageOnboard: function (onboardPackage, vims) {
+ packageOnboard: function (onboardPackage) {
console.log('onboard...');
console.log(onboardPackage);
- console.log(vims);
var requestBody = {
csarId: onboardPackage.uuid
};
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 f443f349..78e32aea 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
@@ -83,29 +83,7 @@ app.controller('lcmCtrl', ['$scope', '$uibModal', '$log', '$http', '$timeout', '
};
ctrl.packageOnboard = function (onboardPackage) {
- var modalInstance = $uibModal.open({
- ariaLabelledBy: 'modal-title',
- ariaDescribedBy: 'modal-body',
- templateUrl : 'app/uui/fusion/scripts/view-models/vnf-ns-onboard-dialog.html',
- controller : 'packageOnboardCtrl',
- controllerAs : 'ctrl',
- resolve: {
- onboardPackage: function () {
- return onboardPackage;
- }
- }
- });
- modalInstance.result.then(
- function(result) {
- console.log('receive ok button clicked!');
- console.log(result);
- },
- function(reason) {
- console.log('receive cancel button clicked!');
- console.log(reason);
- $log.info('Modal dismissed at: ' + new Date());
- }
- );
+ ServiceTemplateService.packageOnboard(onboardPackage);
};
}
]