From 64f7dc24bd48426e1f07829fd3cce9c1106a19f0 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Mon, 26 Feb 2018 10:13:27 +0530 Subject: 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 --- .../ui/components/projects/projectsController.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'testapi/opnfv_testapi') 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(); -- cgit 1.2.3-korg