From bb67d62d81ead82c2b549f5c1f588629396eea38 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 16 Dec 2020 15:52:16 -0500 Subject: [PATCH] Adds variables to track showing limit/job type/scm branch/verbosity fields in Prompted Values --- .../Schedule/ScheduleDetail/ScheduleDetail.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx b/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx index 46cef1894c..946ac94f55 100644 --- a/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx +++ b/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx @@ -172,17 +172,21 @@ function ScheduleDetail({ schedule, i18n }) { ask_skip_tags_on_launch && skip_tags && skip_tags.length > 0; const showDiffModeDetail = ask_diff_mode_on_launch && typeof diff_mode === 'boolean'; + const showLimitDetail = ask_limit_on_launch && limit; + const showJobTypeDetail = ask_job_type_on_launch && job_type; + const showSCMBranchDetail = ask_scm_branch_on_launch && scm_branch; + const showVerbosityDetail = ask_verbosity_on_launch && VERBOSITY[verbosity]; const showPromptedFields = showCredentialsDetail || showDiffModeDetail || showInventoryDetail || - ask_job_type_on_launch || - ask_limit_on_launch || - ask_scm_branch_on_launch || + showJobTypeDetail || + showLimitDetail || + showSCMBranchDetail || showSkipTagsDetail || showTagsDetail || - ask_verbosity_on_launch || + showVerbosityDetail || showVariablesDetail; if (isLoading) {