mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Configuration: Provide custom navigation items
This commit is contained in:
parent
201a6d9ed1
commit
ea6ac7bf02
1 changed files with 18 additions and 0 deletions
|
|
@ -132,6 +132,12 @@ namespace Icinga\Module\Icingadb
|
|||
);
|
||||
|
||||
if (! $this::exists('monitoring')) {
|
||||
/*
|
||||
* Available navigation items
|
||||
*/
|
||||
$this->provideNavigationItem('icingadb-host-action', $this->translate('Host Action'));
|
||||
$this->provideNavigationItem('icingadb-service-action', $this->translate('Service Action'));
|
||||
|
||||
/**
|
||||
* Search urls
|
||||
*/
|
||||
|
|
@ -253,6 +259,18 @@ namespace Icinga\Module\Icingadb
|
|||
. '&view=minimal&limit=15&sort=host.state.severity desc',
|
||||
150
|
||||
);
|
||||
} else {
|
||||
/*
|
||||
* Available navigation items
|
||||
*/
|
||||
$this->provideNavigationItem(
|
||||
'icingadb-host-action',
|
||||
$this->translate('Host Action') . ' (Icinga DB)'
|
||||
);
|
||||
$this->provideNavigationItem(
|
||||
'icingadb-service-action',
|
||||
$this->translate('Service Action') . ' (Icinga DB)'
|
||||
);
|
||||
}
|
||||
|
||||
/** @var \Icinga\Application\Modules\Module $this */
|
||||
|
|
|
|||
Loading…
Reference in a new issue