diff --git a/awx/ui/client/src/notifications/add/add.controller.js b/awx/ui/client/src/notifications/add/add.controller.js index e2fa103996..2d4d45fc43 100644 --- a/awx/ui/client/src/notifications/add/add.controller.js +++ b/awx/ui/client/src/notifications/add/add.controller.js @@ -126,7 +126,7 @@ export default function processValue(value, i , field){ if(field.type === 'textarea'){ - if (field.name == 'headers') { + if (field.name === 'headers') { $scope[i] = JSON.parse($scope[i]); } else { $scope[i] = $scope[i].toString().split('\n'); diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js index 379f9db0e4..c81b7220c0 100644 --- a/awx/ui/client/src/notifications/edit/edit.controller.js +++ b/awx/ui/client/src/notifications/edit/edit.controller.js @@ -59,7 +59,7 @@ export default master[fld] = data.notification_configuration[fld]; if(form.fields[fld].type === 'textarea'){ - if (form.fields[fld].name == 'headers') { + if (form.fields[fld].name === 'headers') { $scope[fld] = JSON.stringify($scope[fld], null, 2); } else { $scope[fld] = $scope[fld].toString().replace(',' , '\n'); @@ -189,7 +189,7 @@ export default function processValue(value, i , field){ if(field.type === 'textarea'){ - if (field.name == 'headers') { + if (field.name === 'headers') { $scope[i] = JSON.parse($scope[i]); } else { $scope[i] = $scope[i].toString().split('\n'); diff --git a/awx/ui/client/src/notifications/notificationTemplates.form.js b/awx/ui/client/src/notifications/notificationTemplates.form.js index e2f03dfe5d..7ad0898b97 100644 --- a/awx/ui/client/src/notifications/notificationTemplates.form.js +++ b/awx/ui/client/src/notifications/notificationTemplates.form.js @@ -303,13 +303,13 @@ export default function() { reqExpression: "webhook_required", init: "false" }, - awPopOver: '

Specify HTTP Headers in JSON format

' - + '

For example:

\n'
-                         + '{\n'
-                         + '  "X-Auth-Token": "828jf0",\n'
-                         + '  "X-Ansible": "Is great!"\n'
-                         + '}\n'
-                         + '

', + awPopOver: '

Specify HTTP Headers in JSON format

' + + '

For example:

\n' +
+                           '{\n' +
+                           '  "X-Auth-Token": "828jf0",\n' +
+                           '  "X-Ansible": "Is great!"\n' +
+                           '}\n' +
+                           '

', ngShow: "notification_type.value == 'webhook' ", subForm: 'typeSubForm' },