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)
|
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')
|
||||||
|
@ -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 [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user