1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

add timeout field to ui

This commit is contained in:
John Mitchell 2019-01-21 13:52:47 -05:00
parent 6772c81927
commit fcd759fa1f
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -141,18 +141,15 @@ function(NotificationsList, i18n) {
},
forks: {
label: i18n._('Forks'),
id: 'forks-number',
type: 'number',
integer: true,
min: 1,
min: 0,
default: 0,
spinner: true,
'class': "input-small",
column: 1,
awPopOver: i18n._('The number of parallel or simultaneous processes to use while executing the playbook. Value defaults to 0. Refer to the Ansible documentation for details about the configuration file.'),
placeholder: 'DEFAULT',
dataTitle: i18n._('Forks'),
dataPlacement: 'right',
dataContainer: "body",
dataContainer: 'body',
awPopOver: "<p>" + i18n._("The number of parallel or simultaneous processes to use while executing the playbook. Value defaults to 0. Refer to the Ansible documentation for details about the configuration file.") + "</p>",
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
},
limit: {
@ -270,6 +267,19 @@ function(NotificationsList, i18n) {
awPopOver: "<p>" + i18n._("Divide the work done by this job template into the specified number of job slices, each running the same tasks against a portion of the inventory.") + "</p>",
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
},
timeout: {
label: i18n._('Timeout'),
type: 'number',
integer: true,
min: 0,
default: 0,
spinner: true,
dataTitle: i18n._('Timeout'),
dataPlacement: 'right',
dataContainer: 'body',
awPopOver: "<p>" + i18n._("The amount of time (in seconds) to run before the task is canceled. Defaults to 0, which means the job will not timeout.") + "</p>",
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
},
diff_mode: {
label: i18n._('Show Changes'),
type: 'toggleSwitch',