mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
jshint
This commit is contained in:
@@ -126,7 +126,7 @@ export default
|
|||||||
|
|
||||||
function processValue(value, i , field){
|
function processValue(value, i , field){
|
||||||
if(field.type === 'textarea'){
|
if(field.type === 'textarea'){
|
||||||
if (field.name == 'headers') {
|
if (field.name === 'headers') {
|
||||||
$scope[i] = JSON.parse($scope[i]);
|
$scope[i] = JSON.parse($scope[i]);
|
||||||
} else {
|
} else {
|
||||||
$scope[i] = $scope[i].toString().split('\n');
|
$scope[i] = $scope[i].toString().split('\n');
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default
|
|||||||
master[fld] = data.notification_configuration[fld];
|
master[fld] = data.notification_configuration[fld];
|
||||||
|
|
||||||
if(form.fields[fld].type === 'textarea'){
|
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);
|
$scope[fld] = JSON.stringify($scope[fld], null, 2);
|
||||||
} else {
|
} else {
|
||||||
$scope[fld] = $scope[fld].toString().replace(',' , '\n');
|
$scope[fld] = $scope[fld].toString().replace(',' , '\n');
|
||||||
@@ -189,7 +189,7 @@ export default
|
|||||||
|
|
||||||
function processValue(value, i , field){
|
function processValue(value, i , field){
|
||||||
if(field.type === 'textarea'){
|
if(field.type === 'textarea'){
|
||||||
if (field.name == 'headers') {
|
if (field.name === 'headers') {
|
||||||
$scope[i] = JSON.parse($scope[i]);
|
$scope[i] = JSON.parse($scope[i]);
|
||||||
} else {
|
} else {
|
||||||
$scope[i] = $scope[i].toString().split('\n');
|
$scope[i] = $scope[i].toString().split('\n');
|
||||||
|
|||||||
@@ -303,13 +303,13 @@ export default function() {
|
|||||||
reqExpression: "webhook_required",
|
reqExpression: "webhook_required",
|
||||||
init: "false"
|
init: "false"
|
||||||
},
|
},
|
||||||
awPopOver: '<p>Specify HTTP Headers in JSON format</p>'
|
awPopOver: '<p>Specify HTTP Headers in JSON format</p>' +
|
||||||
+ '<p>For example:<br><pre>\n'
|
'<p>For example:<br><pre>\n' +
|
||||||
+ '{\n'
|
'{\n' +
|
||||||
+ ' "X-Auth-Token": "828jf0",\n'
|
' "X-Auth-Token": "828jf0",\n' +
|
||||||
+ ' "X-Ansible": "Is great!"\n'
|
' "X-Ansible": "Is great!"\n' +
|
||||||
+ '}\n'
|
'}\n' +
|
||||||
+ '</pre></p>',
|
'</pre></p>',
|
||||||
ngShow: "notification_type.value == 'webhook' ",
|
ngShow: "notification_type.value == 'webhook' ",
|
||||||
subForm: 'typeSubForm'
|
subForm: 'typeSubForm'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user