Skip to content

Commit

Permalink
ref(crons): Move timezone to schedule text (#70511)
Browse files Browse the repository at this point in the history
<img width="295" alt="image"
src="https://github.com/getsentry/sentry/assets/1421724/fd919e5b-0dd6-4b41-8e84-d3b99dfe6042">

It is now next to the schedule. This is more logical
  • Loading branch information
evanpurkhiser authored May 8, 2024
1 parent 9a90b57 commit dbc926a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/app/views/monitors/components/detailsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ export default function DetailsSidebar({monitorEnv, monitor}: Props) {
</CheckIns>
<SectionHeading>{t('Schedule')}</SectionHeading>
<Schedule>
<Text>{scheduleAsText(monitor.config)}</Text>
<Text>
{scheduleAsText(monitor.config)}{' '}
{schedule_type === ScheduleType.CRONTAB && `(${timezone})`}
</Text>
{schedule_type === ScheduleType.CRONTAB && (
<CrontabText>({schedule})</CrontabText>
)}
Expand All @@ -96,9 +99,6 @@ export default function DetailsSidebar({monitorEnv, monitor}: Props) {
<SectionHeading>{t('Cron Details')}</SectionHeading>
<KeyValueTable>
<KeyValueTableRow keyName={t('Monitor Slug')} value={slug} />
{schedule_type === ScheduleType.CRONTAB && (
<KeyValueTableRow keyName={t('Timezone')} value={timezone} />
)}
<KeyValueTableRow
keyName={t('Owner')}
value={
Expand Down

0 comments on commit dbc926a

Please sign in to comment.