diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-02-26 10:13:27 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-02-26 10:13:27 +0530 |
commit | 64f7dc24bd48426e1f07829fd3cce9c1106a19f0 (patch) | |
tree | 7ac8159122da243d45d3b9f9771e9aee7e615b61 /testapi/opnfv_testapi/ui/components | |
parent | 7ac324f4b4bb2d190bf0888d12054663e095cc77 (diff) |
Add resource name in project confirm modal
Add the name of the projects in the delete confirm
modal
Change-Id: I19b0c3a1ea66bd4d1588e3d1cf9ed65200195b67
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components')
-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(); |