mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
fix panel providers
This commit is contained in:
parent
faa14d0bf4
commit
2b7439309f
@ -12,10 +12,12 @@ class AdminPanelProvider extends PanelProvider
|
||||
{
|
||||
public function panel(Panel $panel): Panel
|
||||
{
|
||||
return parent::panel($panel)
|
||||
$panel
|
||||
->id('admin')
|
||||
->path('admin')
|
||||
->homeUrl('/')
|
||||
->homeUrl('/');
|
||||
|
||||
return parent::panel($panel)
|
||||
->breadcrumbs(false)
|
||||
->sidebarCollapsibleOnDesktop(fn () => !$panel->hasTopNavigation())
|
||||
->userMenuItems([
|
||||
|
||||
@ -11,9 +11,11 @@ class AppPanelProvider extends PanelProvider
|
||||
{
|
||||
public function panel(Panel $panel): Panel
|
||||
{
|
||||
return parent::panel($panel)
|
||||
$panel
|
||||
->id('app')
|
||||
->default()
|
||||
->default();
|
||||
|
||||
return parent::panel($panel)
|
||||
->breadcrumbs(false)
|
||||
->navigation(false)
|
||||
->topbar(true)
|
||||
|
||||
@ -14,10 +14,12 @@ class ServerPanelProvider extends PanelProvider
|
||||
{
|
||||
public function panel(Panel $panel): Panel
|
||||
{
|
||||
return parent::panel($panel)
|
||||
$panel
|
||||
->id('server')
|
||||
->path('server')
|
||||
->homeUrl(fn () => Filament::getPanel('app')->getUrl())
|
||||
->homeUrl(fn () => Filament::getPanel('app')->getUrl());
|
||||
|
||||
return parent::panel($panel)
|
||||
->tenant(Server::class, 'uuid_short')
|
||||
->userMenuItems([
|
||||
Action::make('to_serverList')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user