mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
parent
8a122fa99c
commit
d6f814b7a3
@ -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')
|
||||
|
@ -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 [];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user