diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-02-28 23:38:58 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-03-01 12:16:11 +0530 |
commit | ed112005d1b1fd69e96a902f7f08d9f9ddb143b1 (patch) | |
tree | 88c4a98909bb233799d306e98fe07782cbfaaaf3 /testapi/opnfv_testapi/ui/components | |
parent | 30c27c5b753413f397a9123bfc45d44de2c3579b (diff) |
Add resource name in scenario page confirm modal
Add the name of the insatllers, versions, projects
and customs in the delete confirm modal
add tests
Change-Id: I91e115f484726d98c357de844197189b22f66584
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js index b76f63c..36e54f5 100644 --- a/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js +++ b/testapi/opnfv_testapi/ui/components/scenarios/scenario/scenarioController.js @@ -219,7 +219,7 @@ var data = { "installers": installers } - confirmModal("Delete",ctrl.deleteInstaller,data); + confirmModal("Delete", 'installers', ctrl.deleteInstaller, data); } function addInstaller(installer){ @@ -273,7 +273,7 @@ "version": versions, "installer": installer } - confirmModal("Delete",ctrl.deleteVersion,data); + confirmModal("Delete", "version", ctrl.deleteVersion, data); } function deleteVersion(data){ @@ -359,7 +359,7 @@ "version": version, "installer": installer } - confirmModal("Delete",ctrl.deleteCustom,data); + confirmModal("Delete", 'customs', ctrl.deleteCustom, data); } function deleteCustom(data){ @@ -402,7 +402,7 @@ "version": version, "installer": installer } - confirmModal("Delete",ctrl.deleteProject,data); + confirmModal("Delete", 'projects', ctrl.deleteProject, data); } function deleteProject(data){ |