From a9288c82fcfb0a5fbbb5675f09d9f4a6871132ce Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 16 Dec 2020 14:08:23 -0500 Subject: [PATCH] Adds missing verbosity detail. Adds flag for showing the diff mode detail. --- .../ScheduleDetail/ScheduleDetail.jsx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx b/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx index 5831c09b6a..46cef1894c 100644 --- a/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx +++ b/awx/ui_next/src/components/Schedule/ScheduleDetail/ScheduleDetail.jsx @@ -63,12 +63,21 @@ function ScheduleDetail({ schedule, i18n }) { skip_tags, summary_fields, timezone, + verbosity, } = schedule; const history = useHistory(); const { pathname } = useLocation(); const pathRoot = pathname.substr(0, pathname.indexOf('schedules')); + const VERBOSITY = { + 0: i18n._(t`0 (Normal)`), + 1: i18n._(t`1 (Verbose)`), + 2: i18n._(t`2 (More Verbose)`), + 3: i18n._(t`3 (Debug)`), + 4: i18n._(t`4 (Connection Debug)`), + }; + const { request: deleteSchedule, isLoading: isDeleteLoading, @@ -161,10 +170,12 @@ function ScheduleDetail({ schedule, i18n }) { const showTagsDetail = ask_tags_on_launch && job_tags && job_tags.length > 0; const showSkipTagsDetail = ask_skip_tags_on_launch && skip_tags && skip_tags.length > 0; + const showDiffModeDetail = + ask_diff_mode_on_launch && typeof diff_mode === 'boolean'; const showPromptedFields = showCredentialsDetail || - ask_diff_mode_on_launch || + showDiffModeDetail || showInventoryDetail || ask_job_type_on_launch || ask_limit_on_launch || @@ -250,7 +261,13 @@ function ScheduleDetail({ schedule, i18n }) { {ask_limit_on_launch && ( )} - {ask_diff_mode_on_launch && typeof diff_mode === 'boolean' && ( + {ask_verbosity_on_launch && ( + + )} + {showDiffModeDetail && (