Skip to content

Commit

Permalink
Revert change from #6214 as it's no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Oct 7, 2019
1 parent 5b9802c commit 8505dea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8505dea

Please sign in to comment.