diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-02-27 16:58:12 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-02-27 16:58:12 +0530 |
commit | 852a3000467aba14388099d133d838149d6df337 (patch) | |
tree | dbd2c6b4000f056382be785c58d890ca7d9cbab6 /testapi/opnfv_testapi | |
parent | 3178bbeebb22f94eb66f31152ed314dacbf5a1de (diff) |
Add resource name in testcase confirm modal
Add the name of the testcases in the delete confirm
modal
Change-Id: I03815865aaedf590c99fdb3a887a4b8cf07652d9
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/projects/project/testCases/testCasesController.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/components/projects/project/testCases/testCasesController.js b/testapi/opnfv_testapi/ui/components/projects/project/testCases/testCasesController.js index 6d3c245..9a865d3 100644 --- a/testapi/opnfv_testapi/ui/components/projects/project/testCases/testCasesController.js +++ b/testapi/opnfv_testapi/ui/components/projects/project/testCases/testCasesController.js @@ -84,7 +84,15 @@ * message */ function openBatchDeleteModal() { - confirmModal("Delete",ctrl.batchDelete); + var deleteObjects = [] + ctrl.checkBox.forEach(function(testcase, index){ + if(!ctrl.showError){ + if(testcase){ + deleteObjects.push(ctrl.data.testcases[index].name) + } + } + }); + confirmModal("Delete", 'testcases', ctrl.batchDelete, deleteObjects); } /** @@ -149,7 +157,7 @@ * message */ function openDeleteTestModal(name) { - confirmModal("Delete", ctrl.deleteTestCase, name); + confirmModal("Delete", 'testcases', ctrl.deleteTestCase, name); } /** |