Skip to content

Commit 4082503

Browse files
committed
Show next schedule run time
1 parent b946b20 commit 4082503

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

resources/scripts/components/server/schedules/ScheduleEditContainer.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,21 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
108108
<ActivePill active={schedule.isActive}/>
109109
}
110110
</h3>
111-
<p css={tw`mt-1 text-sm text-neutral-300`}>
111+
<p css={tw`mt-1 text-sm text-neutral-200`}>
112112
Last run at:&nbsp;
113-
{schedule.lastRunAt ? format(schedule.lastRunAt, 'MMM do \'at\' h:mma') : 'never'}
113+
{schedule.lastRunAt ?
114+
format(schedule.lastRunAt, 'MMM do \'at\' h:mma')
115+
:
116+
<span css={tw`text-neutral-300`}>n/a</span>
117+
}
118+
<span css={tw`ml-4 pl-4 border-l-4 border-neutral-600 py-px`}>
119+
Next run at:&nbsp;
120+
{schedule.nextRunAt ?
121+
format(schedule.nextRunAt, 'MMM do \'at\' h:mma')
122+
:
123+
<span css={tw`text-neutral-300`}>n/a</span>
124+
}
125+
</span>
114126
</p>
115127
</div>
116128
<div css={tw`flex sm:block mt-3 sm:mt-0`}>

0 commit comments

Comments
 (0)