Set Schedule next_run_at in ListSchedules to Never if disabled (#1176)

This commit is contained in:
MartinOscar 2025-03-27 20:24:33 +01:00 committed by GitHub
parent 9a258efe53
commit 68a6dc45cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,8 +39,10 @@ class ListSchedules extends ListRecords
->sortable(),
DateTimeColumn::make('next_run_at')
->label('Next run')
->placeholder('Never')
->since()
->sortable(),
->sortable()
->state(fn (Schedule $schedule) => $schedule->is_active ? $schedule->next_run_at : null),
])
->actions([
ViewAction::make(),