Configuration: Provide custom navigation items

This commit is contained in:
Yonas Habteab 2021-09-09 14:38:47 +02:00
parent 201a6d9ed1
commit ea6ac7bf02

View file

@ -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 */