mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 20:19:26 +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
|
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([
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user