mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
Added store_facts to the job template form
This commit is contained in:
@@ -322,6 +322,18 @@ function(NotificationsList, CompletedJobsList, i18n) {
|
|||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
labelClass: 'stack-inline',
|
labelClass: 'stack-inline',
|
||||||
ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
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: {
|
callback_url: {
|
||||||
|
|||||||
@@ -413,6 +413,10 @@
|
|||||||
$scope.survey_enabled = false;
|
$scope.survey_enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($scope.job_type.value !== "run") {
|
||||||
|
$scope.store_facts = null;
|
||||||
|
}
|
||||||
|
|
||||||
generator.clearApiErrors($scope);
|
generator.clearApiErrors($scope);
|
||||||
|
|
||||||
Wait('start');
|
Wait('start');
|
||||||
|
|||||||
Reference in New Issue
Block a user