mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Merge pull request #4628 from saito-hideki/issue/4528
Fix condition to show prompt button on the schedule add/edit form Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -20,6 +20,13 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
|
|||||||
scheduler,
|
scheduler,
|
||||||
job_type;
|
job_type;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Normally if "ask_*" checkboxes are checked in a job template settings,
|
||||||
|
* shouldShowPromptButton() returns True to show the "PROMPT" button.
|
||||||
|
* However, extra_vars("ask_variables_on_launch") does not use this and
|
||||||
|
* displays a separate text area within the add/edit page for input.
|
||||||
|
* We exclude "ask_variables_on_launch" from shouldShowPromptButton() here.
|
||||||
|
*/
|
||||||
const shouldShowPromptButton = (launchConf) => launchConf.survey_enabled ||
|
const shouldShowPromptButton = (launchConf) => launchConf.survey_enabled ||
|
||||||
launchConf.ask_inventory_on_launch ||
|
launchConf.ask_inventory_on_launch ||
|
||||||
launchConf.ask_credential_on_launch ||
|
launchConf.ask_credential_on_launch ||
|
||||||
@@ -30,7 +37,6 @@ export default ['$filter', '$state', '$stateParams', '$http', 'Wait',
|
|||||||
launchConf.ask_skip_tags_on_launch ||
|
launchConf.ask_skip_tags_on_launch ||
|
||||||
launchConf.ask_diff_mode_on_launch ||
|
launchConf.ask_diff_mode_on_launch ||
|
||||||
launchConf.credential_needed_to_start ||
|
launchConf.credential_needed_to_start ||
|
||||||
launchConf.ask_variables_on_launch ||
|
|
||||||
launchConf.ask_scm_branch_on_launch ||
|
launchConf.ask_scm_branch_on_launch ||
|
||||||
launchConf.variables_needed_to_start.length !== 0;
|
launchConf.variables_needed_to_start.length !== 0;
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
|
|||||||
|
|
||||||
let schedule, scheduler, scheduleCredentials = [];
|
let schedule, scheduler, scheduleCredentials = [];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Normally if "ask_*" checkboxes are checked in a job template settings,
|
||||||
|
* shouldShowPromptButton() returns True to show the "PROMPT" button.
|
||||||
|
* However, extra_vars("ask_variables_on_launch") does not use this and
|
||||||
|
* displays a separate text area within the add/edit page for input.
|
||||||
|
* We exclude "ask_variables_on_launch" from shouldShowPromptButton() here.
|
||||||
|
*/
|
||||||
const shouldShowPromptButton = (launchConf) => launchConf.survey_enabled ||
|
const shouldShowPromptButton = (launchConf) => launchConf.survey_enabled ||
|
||||||
launchConf.ask_inventory_on_launch ||
|
launchConf.ask_inventory_on_launch ||
|
||||||
launchConf.ask_credential_on_launch ||
|
launchConf.ask_credential_on_launch ||
|
||||||
@@ -20,7 +27,6 @@ function($filter, $state, $stateParams, Wait, $scope, moment,
|
|||||||
launchConf.ask_skip_tags_on_launch ||
|
launchConf.ask_skip_tags_on_launch ||
|
||||||
launchConf.ask_diff_mode_on_launch ||
|
launchConf.ask_diff_mode_on_launch ||
|
||||||
launchConf.credential_needed_to_start ||
|
launchConf.credential_needed_to_start ||
|
||||||
launchConf.ask_variables_on_launch ||
|
|
||||||
launchConf.ask_scm_branch_on_launch ||
|
launchConf.ask_scm_branch_on_launch ||
|
||||||
launchConf.passwords_needed_to_start.length !== 0 ||
|
launchConf.passwords_needed_to_start.length !== 0 ||
|
||||||
launchConf.variables_needed_to_start.length !== 0;
|
launchConf.variables_needed_to_start.length !== 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user