From 86eb0353c5d8d41a1dc87a15dbee1b545c9f8832 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 8 Dec 2017 15:12:54 -0800 Subject: [PATCH] fixing url used for determining which notification to toggle on/off for #711 --- .../src/notifications/shared/notification-list-init.factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/notifications/shared/notification-list-init.factory.js b/awx/ui/client/src/notifications/shared/notification-list-init.factory.js index 65c65ce1ee..9f9c5ea543 100644 --- a/awx/ui/client/src/notifications/shared/notification-list-init.factory.js +++ b/awx/ui/client/src/notifications/shared/notification-list-init.factory.js @@ -72,7 +72,7 @@ export default ['Wait', 'GetBasePath', 'ProcessErrors', 'Rest', 'GetChoices', Rest.setUrl(notifier_url); Rest.get() .then(function(response) { - var type = (url.indexOf('success')>0) ? "notification_templates_success" : "notification_templates_error"; + var type = (response.config.url.indexOf('success')>0) ? "notification_templates_success" : "notification_templates_error"; if (response.data.results) { _.forEach(response.data.results, function(result){ _.forEach(scope.notifications, function(notification){