mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
add prompt on launch for workflow inventory
This commit is contained in:
parent
a94042def5
commit
2376013d49
@ -50,8 +50,10 @@ function canLaunchWithoutPrompt () {
|
||||
const launchData = this.model.launch.GET;
|
||||
|
||||
return (
|
||||
launchData.can_start_without_user_input &&
|
||||
!launchData.survey_enabled
|
||||
// TODO: may need api update
|
||||
// launchData.can_start_without_user_input &&
|
||||
!launchData.survey_enabled &&
|
||||
!this.model.GET.ask_inventory_on_launch
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -81,6 +81,11 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
||||
dataTitle: i18n._('Inventory'),
|
||||
dataPlacement: 'right',
|
||||
dataContainer: "body",
|
||||
subCheckbox: {
|
||||
variable: 'ask_inventory_on_launch',
|
||||
ngChange: 'workflow_job_template_form.inventory_name.$validate()',
|
||||
text: i18n._('Prompt on launch')
|
||||
},
|
||||
ngDisabled: '!(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate) || !canEditInventory',
|
||||
},
|
||||
labels: {
|
||||
|
||||
@ -75,6 +75,7 @@ export default [
|
||||
data[fld] = $scope[fld];
|
||||
}
|
||||
}
|
||||
data.ask_inventory_on_launch = Boolean($scope.ask_inventory_on_launch);
|
||||
|
||||
data.extra_vars = ToJSON($scope.parseType,
|
||||
$scope.variables, true);
|
||||
|
||||
@ -88,6 +88,8 @@ export default [
|
||||
}
|
||||
}
|
||||
|
||||
data.ask_inventory_on_launch = Boolean($scope.ask_inventory_on_launch);
|
||||
|
||||
data.extra_vars = ToJSON($scope.parseType,
|
||||
$scope.variables, true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user