AC-1076 Added scm_update_cache_timeout to project add/edit page.

This commit is contained in:
Chris Houseknecht 2014-03-26 17:48:11 -04:00
parent d8383a4d69
commit ba5c396630
2 changed files with 20 additions and 2 deletions

View File

@ -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];
}

View File

@ -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: {