From 47b04f3a6fd1a329074abb6679afeda618863b41 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 6 May 2016 16:03:31 -0400 Subject: [PATCH] Notification List should not highlight row item on save --- awx/ui/client/src/notifications/add/add.controller.js | 1 - awx/ui/client/src/notifications/edit/edit.controller.js | 3 +-- .../notification-templates-list/list.controller.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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,