Skip to content

Commit

Permalink
Move schedule buttons (#815)
Browse files Browse the repository at this point in the history
* Move buttons around

* change to Save
  • Loading branch information
notAreYouScared authored Dec 10, 2024
1 parent 8a122fa commit d6f814b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function form(Form $form): Form
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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ 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'),
];
}

public function getBreadcrumbs(): array
{
return [];
}

protected function getFormActions(): array
{
return [];
}
}

0 comments on commit d6f814b

Please sign in to comment.