mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
AC-1076 Added scm_update_cache_timeout to project add/edit page.
This commit is contained in:
parent
d8383a4d69
commit
ba5c396630
@ -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];
|
||||
}
|
||||
} else {
|
||||
if (data[fld]) {
|
||||
if (data[fld] !== undefined) {
|
||||
$scope[fld] = data[fld];
|
||||
master[fld] = data[fld];
|
||||
}
|
||||
|
||||
@ -206,7 +206,25 @@ angular.module('ProjectFormDefinition', [])
|
||||
dataPlacement: 'right',
|
||||
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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user