diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-02-23 11:57:55 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-02-23 11:57:55 +0530 |
commit | 46c625505ef01ea23c807e37237e3af5a9a23373 (patch) | |
tree | fb8bfa8f2116d21bd429b0d45d197cee97f31ea3 /testapi/opnfv_testapi/ui/components/pods | |
parent | 86f8a2036521e9401d8c9431e4b6412878e6d94f (diff) |
Add resource name in confirm modal
Add resorce(Pod) name in delete confime modal
in a line
JIRA: RELENG-342
Change-Id: I629afc85bc7868fca19dce64c2c57eb195eaade7
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/pods')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/pods/podsController.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/ui/components/pods/podsController.js b/testapi/opnfv_testapi/ui/components/pods/podsController.js index 95e3571..38e084d 100644 --- a/testapi/opnfv_testapi/ui/components/pods/podsController.js +++ b/testapi/opnfv_testapi/ui/components/pods/podsController.js @@ -137,7 +137,6 @@ function batchDelete(){ var index; var checkedBox = []; - console.log(ctrl.checkBox) for(index in ctrl.checkBox){ if(!ctrl.showError){ if(ctrl.checkBox[index]){ @@ -153,7 +152,13 @@ * message */ function openBatchDeleteModal() { - confirmModal("Delete",ctrl.batchDelete); + var deleteObjects = [] + for(var index in ctrl.checkBox){ + if(ctrl.checkBox[index]){ + deleteObjects.push(ctrl.data.pods[index].name) + } + } + confirmModal("Delete", 'pods', ctrl.batchDelete, deleteObjects); } /** @@ -162,7 +167,7 @@ */ function openDeleteModal(name) { console.log(name) - confirmModal("Delete", ctrl.podDelete, name); + confirmModal("Delete", 'pod', ctrl.podDelete, name); } /** |