From 4816977668708f798762b1934aa666d1c677951a Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Mon, 7 Oct 2019 16:08:27 +0200 Subject: [PATCH] Revert change from #6214 as it's no longer needed --- .../generic_object/generic-object-definition-toolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js index 4048a6ecbdd..b394d4917bc 100644 --- a/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js +++ b/app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js @@ -70,8 +70,8 @@ function genericObjectDefinitionToolbarController(API, miqService, $window) { .catch(miqService.handleFailure); } - function postAction() { - var entityName = toolbar.entityName; + function postAction(response) { + var entityName = response.name; var saveMsg = sprintf(__('%s: "%s" was successfully deleted'), toolbar.entity, entityName); if (toolbar.redirectUrl) { miqService.redirectBack(saveMsg, 'success', toolbar.redirectUrl);