diff --git a/awx/ui/client/src/notifications/add/add.controller.js b/awx/ui/client/src/notifications/add/add.controller.js index ec7f1fdb24..5108c8b0ab 100644 --- a/awx/ui/client/src/notifications/add/add.controller.js +++ b/awx/ui/client/src/notifications/add/add.controller.js @@ -111,7 +111,6 @@ export default Rest.setUrl(url); Rest.post(params) .success(function (data) { - $rootScope.addedItem = data.id; $state.go('notifications', {}, {reload: true}); Wait('stop'); }) diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js index 8a0577f14c..62ce4c4993 100644 --- a/awx/ui/client/src/notifications/edit/edit.controller.js +++ b/awx/ui/client/src/notifications/edit/edit.controller.js @@ -155,8 +155,7 @@ export default Wait('start'); Rest.setUrl(url+ id+'/'); Rest.put(params) - .success(function (data) { - $rootScope.addedItem = data.id; + .success(function () { $state.go('notifications', {}, {reload: true}); Wait('stop'); }) diff --git a/awx/ui/client/src/notifications/notification-templates-list/list.controller.js b/awx/ui/client/src/notifications/notification-templates-list/list.controller.js index 6c6aefb133..04de688cb6 100644 --- a/awx/ui/client/src/notifications/notification-templates-list/list.controller.js +++ b/awx/ui/client/src/notifications/notification-templates-list/list.controller.js @@ -192,7 +192,7 @@ export default msg: 'Call to ' + url + ' failed. DELETE returned status: ' + status }); }); }; - var bodyHtml = '
Are you sure you want to delete the inventory below?
' + name + '
'; + var bodyHtml = '
Are you sure you want to delete the notification template below?
' + name + '
'; Prompt({ hdr: 'Delete', body: bodyHtml,