mirror of https://github.com/MISP/MISP
chg: [noticelists] Updated navigation
parent
eb22955c4b
commit
392b34c5c1
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
namespace BreadcrumbNavigation;
|
||||
|
||||
require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'base.php');
|
||||
|
||||
class NoticelistsNavigation extends BaseNavigation
|
||||
{
|
||||
}
|
|
@ -145,7 +145,7 @@ class Sidemenu {
|
|||
],
|
||||
'NoticeLists' => [
|
||||
'label' => __('NoticeLists'),
|
||||
'icon' => $this->iconTable['NoticeLists'],
|
||||
'icon' => $this->iconTable['Noticelists'],
|
||||
'url' => '/noticelists/index',
|
||||
],
|
||||
]
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue