Merge pull request #3143 from Icinga/bugfix/inactive-module-config-tabs-2977
Hide inactive modules' config tabs
This commit is contained in:
commit
c1497cf1c5
|
@ -876,9 +876,13 @@ class Module
|
|||
'urlParams' => array('name' => $this->getName()),
|
||||
'label' => 'Module: ' . $this->getName()
|
||||
));
|
||||
foreach ($this->configTabs as $name => $config) {
|
||||
$tabs->add($name, $config);
|
||||
|
||||
if ($this->app->getModuleManager()->hasEnabled($this->name)) {
|
||||
foreach ($this->configTabs as $name => $config) {
|
||||
$tabs->add($name, $config);
|
||||
}
|
||||
}
|
||||
|
||||
return $tabs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue