fix panel providers

This commit is contained in:
Boy132 2025-08-07 09:15:41 +02:00
parent faa14d0bf4
commit 2b7439309f
3 changed files with 12 additions and 6 deletions

View File

@ -12,10 +12,12 @@ class AdminPanelProvider extends PanelProvider
{ {
public function panel(Panel $panel): Panel public function panel(Panel $panel): Panel
{ {
return parent::panel($panel) $panel
->id('admin') ->id('admin')
->path('admin') ->path('admin')
->homeUrl('/') ->homeUrl('/');
return parent::panel($panel)
->breadcrumbs(false) ->breadcrumbs(false)
->sidebarCollapsibleOnDesktop(fn () => !$panel->hasTopNavigation()) ->sidebarCollapsibleOnDesktop(fn () => !$panel->hasTopNavigation())
->userMenuItems([ ->userMenuItems([

View File

@ -11,9 +11,11 @@ class AppPanelProvider extends PanelProvider
{ {
public function panel(Panel $panel): Panel public function panel(Panel $panel): Panel
{ {
return parent::panel($panel) $panel
->id('app') ->id('app')
->default() ->default();
return parent::panel($panel)
->breadcrumbs(false) ->breadcrumbs(false)
->navigation(false) ->navigation(false)
->topbar(true) ->topbar(true)

View File

@ -14,10 +14,12 @@ class ServerPanelProvider extends PanelProvider
{ {
public function panel(Panel $panel): Panel public function panel(Panel $panel): Panel
{ {
return parent::panel($panel) $panel
->id('server') ->id('server')
->path('server') ->path('server')
->homeUrl(fn () => Filament::getPanel('app')->getUrl()) ->homeUrl(fn () => Filament::getPanel('app')->getUrl());
return parent::panel($panel)
->tenant(Server::class, 'uuid_short') ->tenant(Server::class, 'uuid_short')
->userMenuItems([ ->userMenuItems([
Action::make('to_serverList') Action::make('to_serverList')