diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-02-26 02:45:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-26 02:45:36 +0000 |
commit | 9bd1b9da58c6fcceccf5bcc714d1bd99bc8f0dd6 (patch) | |
tree | f5d34763383e1b6167b0fe37d3d4fa17298d35d4 /testapi/opnfv_testapi/ui/components | |
parent | e9285f3bb3f71840958e8967ba6409dc9b2d038a (diff) | |
parent | 46c625505ef01ea23c807e37237e3af5a9a23373 (diff) |
Merge "Add resource name in confirm modal"
Diffstat (limited to 'testapi/opnfv_testapi/ui/components')
-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); } /** |