chg: [noticelists] Updated navigation

pull/9248/head
Sami Mokaddem 2023-08-08 09:40:43 +02:00
parent eb22955c4b
commit 392b34c5c1
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
3 changed files with 22 additions and 12 deletions

View File

@ -0,0 +1,8 @@
<?php
namespace BreadcrumbNavigation;
require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'base.php');
class NoticelistsNavigation extends BaseNavigation
{
}

View File

@ -145,7 +145,7 @@ class Sidemenu {
],
'NoticeLists' => [
'label' => __('NoticeLists'),
'icon' => $this->iconTable['NoticeLists'],
'icon' => $this->iconTable['Noticelists'],
'url' => '/noticelists/index',
],
]

View File

@ -46,7 +46,7 @@ class NavigationComponent extends Component
'DecayingModels' => 'hourglass-end',
'ImportRegexp' => 'file-import',
'SignatureAllowedlists' => 'fingerprint',
'NoticeLists' => 'list',
'Noticelists' => 'list',
'Correlations' => 'project-diagram',
'Servers' => 'network-wired',
'Communities' => 'handshake-simple',
@ -79,6 +79,17 @@ class NavigationComponent extends Component
['icon' => 'cog', 'class' => 'fa-inverse']
]],
];
protected $defaultCRUDControllers = [
//'Individuals',
'Organisations',
'SharingGroups',
'Roles',
'Users',
'Tags',
'UserSettings',
'Events',
'Noticelists',
];
public function initialize(array $config): void
{
@ -199,16 +210,7 @@ class NavigationComponent extends Component
public function getFullConfig($bcf, $request)
{
$navigationClasses = $this->loadNavigationClasses($bcf, $request);
$CRUDControllers = [
//'Individuals',
'Organisations',
'SharingGroups',
'Roles',
'Users',
'Tags',
'UserSettings',
'Events',
];
$CRUDControllers = $this->defaultCRUDControllers;
foreach ($CRUDControllers as $controller) {
$bcf->setDefaultCRUDForModel($controller);
}