1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fixing url used for determining which notification to toggle on/off

for #711
This commit is contained in:
Jared Tabor 2017-12-08 15:12:54 -08:00
parent 282290e151
commit 86eb0353c5

View File

@ -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){