panel : remove useless menu items

This commit is contained in:
isUnknown 2025-01-15 16:34:12 +01:00
parent 81c787c52d
commit aeb5bf63c9

View file

@ -66,24 +66,15 @@ return [
} }
], ],
'-', '-',
'notifications' => [ // 'reunions' => [
'label' => 'Notifications', // 'label' => 'Réunions',
'icon' => 'megaphone', // 'icon' => 'calendar',
'link' => 'pages/notifications', // 'link' => 'pages/reunions',
'current' => function (string $current): bool { // 'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path(); // $path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/notifications'); // return Str::contains($path, 'pages/reunions');
} // }
], // ],
'reunions' => [
'label' => 'Réunions',
'icon' => 'calendar',
'link' => 'pages/reunions',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->path();
return Str::contains($path, 'pages/reunions');
}
],
'-', '-',
'users', 'users',
'system' 'system'