mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
AC-1076 Added scm_update_cache_timeout to project add/edit page.
This commit is contained in:
@@ -576,7 +576,7 @@ function ProjectsEdit($scope, $rootScope, $compile, $location, $log, $routeParam
|
|||||||
master[form.fields[fld].fields[i].name] = data[form.fields[fld].fields[i].name];
|
master[form.fields[fld].fields[i].name] = data[form.fields[fld].fields[i].name];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (data[fld]) {
|
if (data[fld] !== undefined) {
|
||||||
$scope[fld] = data[fld];
|
$scope[fld] = data[fld];
|
||||||
master[fld] = data[fld];
|
master[fld] = data[fld];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,7 +206,25 @@ angular.module('ProjectFormDefinition', [])
|
|||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
labelClass: 'checkbox-options'
|
labelClass: 'checkbox-options'
|
||||||
}]
|
}]
|
||||||
}
|
},
|
||||||
|
scm_update_cache_timeout: {
|
||||||
|
label: 'Cache Timeout',
|
||||||
|
id: 'scm-cache-timeout',
|
||||||
|
type: 'number',
|
||||||
|
integer: true,
|
||||||
|
min: 0,
|
||||||
|
ngShow: "scm_update_on_launch",
|
||||||
|
spinner: true,
|
||||||
|
"default": '0',
|
||||||
|
addRequired: false,
|
||||||
|
editRequired: false,
|
||||||
|
awPopOver: '<p>Time in seconds to consider a project update current. During job runs and callbacks the task system will ' +
|
||||||
|
'evaluate the timestamp of the latest project update. If it is older than Cache Timeout, the project update is not current, ' +
|
||||||
|
'and a new update will be performed.',
|
||||||
|
dataTitle: 'Cache Timeout',
|
||||||
|
dataPlacement: 'right',
|
||||||
|
dataContainer: "body"
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
buttons: {
|
buttons: {
|
||||||
|
|||||||
Reference in New Issue
Block a user