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) Section::make('Editing: ' . $this->path)
->footerActions([ ->footerActions([
Action::make('save') Action::make('save')
->label('Save Changes') ->label('Save')
->authorize(fn () => auth()->user()->can(Permission::ACTION_FILE_UPDATE, $server)) ->authorize(fn () => auth()->user()->can(Permission::ACTION_FILE_UPDATE, $server))
->icon('tabler-device-floppy') ->icon('tabler-device-floppy')
->keyBindings('mod+s') ->keyBindings('mod+s')

View File

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