Show next schedule run time
This commit is contained in:
parent
b946b20193
commit
4082503190
1 changed files with 14 additions and 2 deletions
|
@ -108,9 +108,21 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
|
||||||
<ActivePill active={schedule.isActive}/>
|
<ActivePill active={schedule.isActive}/>
|
||||||
}
|
}
|
||||||
</h3>
|
</h3>
|
||||||
<p css={tw`mt-1 text-sm text-neutral-300`}>
|
<p css={tw`mt-1 text-sm text-neutral-200`}>
|
||||||
Last run at:
|
Last run at:
|
||||||
{schedule.lastRunAt ? format(schedule.lastRunAt, 'MMM do \'at\' h:mma') : 'never'}
|
{schedule.lastRunAt ?
|
||||||
|
format(schedule.lastRunAt, 'MMM do \'at\' h:mma')
|
||||||
|
:
|
||||||
|
<span css={tw`text-neutral-300`}>n/a</span>
|
||||||
|
}
|
||||||
|
<span css={tw`ml-4 pl-4 border-l-4 border-neutral-600 py-px`}>
|
||||||
|
Next run at:
|
||||||
|
{schedule.nextRunAt ?
|
||||||
|
format(schedule.nextRunAt, 'MMM do \'at\' h:mma')
|
||||||
|
:
|
||||||
|
<span css={tw`text-neutral-300`}>n/a</span>
|
||||||
|
}
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div css={tw`flex sm:block mt-3 sm:mt-0`}>
|
<div css={tw`flex sm:block mt-3 sm:mt-0`}>
|
||||||
|
|
Loading…
Reference in a new issue