mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 04:30:05 -03:30
Adds missing verbosity detail. Adds flag for showing the diff mode detail.
This commit is contained in:
@@ -63,12 +63,21 @@ function ScheduleDetail({ schedule, i18n }) {
|
|||||||
skip_tags,
|
skip_tags,
|
||||||
summary_fields,
|
summary_fields,
|
||||||
timezone,
|
timezone,
|
||||||
|
verbosity,
|
||||||
} = schedule;
|
} = schedule;
|
||||||
|
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
const pathRoot = pathname.substr(0, pathname.indexOf('schedules'));
|
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 {
|
const {
|
||||||
request: deleteSchedule,
|
request: deleteSchedule,
|
||||||
isLoading: isDeleteLoading,
|
isLoading: isDeleteLoading,
|
||||||
@@ -161,10 +170,12 @@ function ScheduleDetail({ schedule, i18n }) {
|
|||||||
const showTagsDetail = ask_tags_on_launch && job_tags && job_tags.length > 0;
|
const showTagsDetail = ask_tags_on_launch && job_tags && job_tags.length > 0;
|
||||||
const showSkipTagsDetail =
|
const showSkipTagsDetail =
|
||||||
ask_skip_tags_on_launch && skip_tags && skip_tags.length > 0;
|
ask_skip_tags_on_launch && skip_tags && skip_tags.length > 0;
|
||||||
|
const showDiffModeDetail =
|
||||||
|
ask_diff_mode_on_launch && typeof diff_mode === 'boolean';
|
||||||
|
|
||||||
const showPromptedFields =
|
const showPromptedFields =
|
||||||
showCredentialsDetail ||
|
showCredentialsDetail ||
|
||||||
ask_diff_mode_on_launch ||
|
showDiffModeDetail ||
|
||||||
showInventoryDetail ||
|
showInventoryDetail ||
|
||||||
ask_job_type_on_launch ||
|
ask_job_type_on_launch ||
|
||||||
ask_limit_on_launch ||
|
ask_limit_on_launch ||
|
||||||
@@ -250,7 +261,13 @@ function ScheduleDetail({ schedule, i18n }) {
|
|||||||
{ask_limit_on_launch && (
|
{ask_limit_on_launch && (
|
||||||
<Detail label={i18n._(t`Limit`)} value={limit} />
|
<Detail label={i18n._(t`Limit`)} value={limit} />
|
||||||
)}
|
)}
|
||||||
{ask_diff_mode_on_launch && typeof diff_mode === 'boolean' && (
|
{ask_verbosity_on_launch && (
|
||||||
|
<Detail
|
||||||
|
label={i18n._(t`Verbosity`)}
|
||||||
|
value={VERBOSITY[verbosity]}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{showDiffModeDetail && (
|
||||||
<Detail
|
<Detail
|
||||||
label={i18n._(t`Show Changes`)}
|
label={i18n._(t`Show Changes`)}
|
||||||
value={diff_mode ? i18n._(t`On`) : i18n._(t`Off`)}
|
value={diff_mode ? i18n._(t`On`) : i18n._(t`Off`)}
|
||||||
|
|||||||
Reference in New Issue
Block a user