diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-11-30 14:44:45 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-12-02 09:08:09 +0530 |
commit | ae88dfd997ae0516ec097033c378740ea8580483 (patch) | |
tree | f04e1356afa0126ab1064b34bff3c11504b89022 /testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js | |
parent | 3e69f8623c87f0d1d673d702d3516e688daf9a0d (diff) |
redesign the pods interface
redesign the pods interface and add the delate operation
for the podas in backend.
Fix the issue in creating pods: Owner is null
Change-Id: I2f8e907f9ab62362a3003d6457662ab85bf2cb12
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js b/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js index aba205e..fc0bfe6 100644 --- a/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js +++ b/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js @@ -11,7 +11,7 @@ * Opens confirm modal dialog with input textbox */ function confirmModal($uibModal) { - return function(text, successHandler) { + return function(text, successHandler, name) { $uibModal.open({ templateUrl: '/testapi-ui/shared/alerts/confirmModal.html', controller: 'CustomConfirmModalController as confirmModal', @@ -20,7 +20,8 @@ data: function () { return { text: text, - successHandler: successHandler + successHandler: successHandler, + name: name }; } } @@ -45,7 +46,7 @@ ctrl.cancel = cancel; ctrl.data = angular.copy(data); - + console.log(ctrl.data) /** * Initiate confirmation and call the success handler with the * input text. @@ -53,7 +54,7 @@ function confirm() { $uibModalInstance.close(); if (angular.isDefined(ctrl.data.successHandler)) { - ctrl.data.successHandler(ctrl.inputText); + ctrl.data.successHandler(ctrl.data.name); } } |