forked from Alex/Pterodactyl-Panel
Show next schedule run time
This commit is contained in:
parent
b946b20193
commit
4082503190
@ -108,9 +108,21 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
|
||||
<ActivePill active={schedule.isActive}/>
|
||||
}
|
||||
</h3>
|
||||
<p css={tw`mt-1 text-sm text-neutral-300`}>
|
||||
<p css={tw`mt-1 text-sm text-neutral-200`}>
|
||||
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>
|
||||
</div>
|
||||
<div css={tw`flex sm:block mt-3 sm:mt-0`}>
|
||||
|
Loading…
Reference in New Issue
Block a user