diff --git a/awx/ui/client/lib/models/WorkflowJobTemplate.js b/awx/ui/client/lib/models/WorkflowJobTemplate.js index f171098eb8..06d9e9decc 100644 --- a/awx/ui/client/lib/models/WorkflowJobTemplate.js +++ b/awx/ui/client/lib/models/WorkflowJobTemplate.js @@ -58,8 +58,9 @@ function canLaunchWithoutPrompt () { launchData.can_start_without_user_input && !launchData.ask_inventory_on_launch && !launchData.ask_variables_on_launch && - !launchData.survey_enabled && + !launchData.ask_limit_on_launch && !launchData.ask_scm_branch_on_launch && + !launchData.survey_enabled && launchData.variables_needed_to_start.length === 0 ); } diff --git a/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js b/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js index d46038d0f6..5dcb050dfb 100644 --- a/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js +++ b/awx/ui/client/src/templates/workflows/add-workflow/workflow-add.controller.js @@ -70,9 +70,11 @@ export default [ data[fld] = $scope[fld]; } } - + data.ask_inventory_on_launch = Boolean($scope.ask_inventory_on_launch); data.ask_variables_on_launch = Boolean($scope.ask_variables_on_launch); + data.ask_limit_on_launch = Boolean($scope.ask_limit_on_launch); + data.ask_scm_branch_on_launch = Boolean($scope.ask_scm_branch_on_launch); data.extra_vars = ToJSON($scope.parseType, $scope.variables, true);