diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-02-27 09:40:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-27 09:40:33 +0000 |
commit | 04abc1dc89e2b471a170fe6160fa6f8535d59bd8 (patch) | |
tree | faec6f2e38a4773946d90d47d5f450b44d3a5158 | |
parent | d707f05513d4fc9d0f58f1d777471307484b21bc (diff) | |
parent | 64f7dc24bd48426e1f07829fd3cce9c1106a19f0 (diff) |
Merge "Add resource name in project confirm modal"
-rw-r--r-- | testapi/opnfv_testapi/ui/components/projects/projectsController.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/components/projects/projectsController.js b/testapi/opnfv_testapi/ui/components/projects/projectsController.js index 940c1e2..0d0ec99 100644 --- a/testapi/opnfv_testapi/ui/components/projects/projectsController.js +++ b/testapi/opnfv_testapi/ui/components/projects/projectsController.js @@ -204,7 +204,15 @@ * message */ function openBatchDeleteModal() { - confirmModal("Delete",ctrl.batchDelete); + var deleteObjects = [] + ctrl.checkBox.forEach(function(project, index){ + if(!ctrl.showError){ + if(project){ + deleteObjects.push(ctrl.data.projects[index].name) + } + } + }); + confirmModal("Delete", 'projects', ctrl.batchDelete, deleteObjects); } /** @@ -212,7 +220,7 @@ * message */ function openDeleteModal(name) { - confirmModal("Delete", ctrl.projectDelete, name); + confirmModal("Delete",'projects', ctrl.projectDelete, name); } ctrl.listProjects(); |