Move schedule buttons (#815)

* Move buttons around

* change to Save
This commit is contained in:
Charles 2024-12-10 17:57:06 -05:00 committed by GitHub
parent 8a122fa99c
commit d6f814b7a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class EditFiles extends Page
Section::make('Editing: ' . $this->path)
->footerActions([
Action::make('save')
->label('Save Changes')
->label('Save')
->authorize(fn () => auth()->user()->can(Permission::ACTION_FILE_UPDATE, $server))
->icon('tabler-device-floppy')
->keyBindings('mod+s')

View File

@ -13,8 +13,9 @@ class EditSchedule extends EditRecord
protected function getHeaderActions(): array
{
return [
Actions\ViewAction::make(),
Actions\DeleteAction::make(),
$this->getSaveFormAction()->formId('form')->label('Save'),
$this->getCancelFormAction()->formId('form'),
];
}
@ -22,4 +23,9 @@ class EditSchedule extends EditRecord
{
return [];
}
protected function getFormActions(): array
{
return [];
}
}