mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
fixing url used for determining which notification to toggle on/off
for #711
This commit is contained in:
@@ -72,7 +72,7 @@ export default ['Wait', 'GetBasePath', 'ProcessErrors', 'Rest', 'GetChoices',
|
|||||||
Rest.setUrl(notifier_url);
|
Rest.setUrl(notifier_url);
|
||||||
Rest.get()
|
Rest.get()
|
||||||
.then(function(response) {
|
.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) {
|
if (response.data.results) {
|
||||||
_.forEach(response.data.results, function(result){
|
_.forEach(response.data.results, function(result){
|
||||||
_.forEach(scope.notifications, function(notification){
|
_.forEach(scope.notifications, function(notification){
|
||||||
|
|||||||
Reference in New Issue
Block a user