mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Added store_facts to the job template form
This commit is contained in:
parent
0522e27a66
commit
4721805b4b
@ -322,6 +322,18 @@ function(NotificationsList, CompletedJobsList, i18n) {
|
||||
dataContainer: "body",
|
||||
labelClass: 'stack-inline',
|
||||
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
||||
}, {
|
||||
name: 'store_facts',
|
||||
label: i18n._('Store Ansible Facts'),
|
||||
type: 'checkbox',
|
||||
column: 2,
|
||||
awPopOver: "<p>" + i18n._("If enabled, a fact scan will be done when this job is launched.") + "</p>",
|
||||
dataPlacement: 'right',
|
||||
dataTitle: i18n._('Store Ansible Facts'),
|
||||
dataContainer: "body",
|
||||
labelClass: 'stack-inline',
|
||||
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)',
|
||||
ngShow: "!job_type.value || job_type.value === 'run'"
|
||||
}]
|
||||
},
|
||||
callback_url: {
|
||||
|
@ -413,6 +413,10 @@
|
||||
$scope.survey_enabled = false;
|
||||
}
|
||||
|
||||
if($scope.job_type.value !== "run") {
|
||||
$scope.store_facts = null;
|
||||
}
|
||||
|
||||
generator.clearApiErrors($scope);
|
||||
|
||||
Wait('start');
|
||||
|
Loading…
Reference in New Issue
Block a user