1
0
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:
Michael Abashian 2017-05-05 11:11:09 -04:00
parent 0522e27a66
commit 4721805b4b
2 changed files with 16 additions and 0 deletions

View File

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

View File

@ -413,6 +413,10 @@
$scope.survey_enabled = false;
}
if($scope.job_type.value !== "run") {
$scope.store_facts = null;
}
generator.clearApiErrors($scope);
Wait('start');