mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-24 16:34:45 +02:00
Set Schedule
next_run_at in ListSchedules
to Never if disabled (#1176)
This commit is contained in:
parent
9a258efe53
commit
68a6dc45cb
@ -39,8 +39,10 @@ class ListSchedules extends ListRecords
|
|||||||
->sortable(),
|
->sortable(),
|
||||||
DateTimeColumn::make('next_run_at')
|
DateTimeColumn::make('next_run_at')
|
||||||
->label('Next run')
|
->label('Next run')
|
||||||
|
->placeholder('Never')
|
||||||
->since()
|
->since()
|
||||||
->sortable(),
|
->sortable()
|
||||||
|
->state(fn (Schedule $schedule) => $schedule->is_active ? $schedule->next_run_at : null),
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
ViewAction::make(),
|
ViewAction::make(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user