mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
DashboardController: remove obsolete comments
This commit is contained in:
parent
4c177fc4ea
commit
14b5c67ff2
@ -21,11 +21,9 @@ class DashboardController extends ActionController
|
|||||||
$this->setTitle($this->translate('Icinga Director - Main Dashboard'));
|
$this->setTitle($this->translate('Icinga Director - Main Dashboard'));
|
||||||
$names = $this->params->getValues('name', $mainDashboards);
|
$names = $this->params->getValues('name', $mainDashboards);
|
||||||
if (count($names) === 1) {
|
if (count($names) === 1) {
|
||||||
// TODO: Find a better way for this
|
|
||||||
$name = $names[0];
|
$name = $names[0];
|
||||||
$dashboard = Dashboard::loadByName($name, $this->db());
|
$dashboard = Dashboard::loadByName($name, $this->db());
|
||||||
$this->tabs($dashboard->getTabs())->activate($name);
|
$this->tabs($dashboard->getTabs())->activate($name);
|
||||||
// $this->addSingleTab($this->translate(ucfirst($name)));
|
|
||||||
} else {
|
} else {
|
||||||
$this->addSingleTab($this->translate('Overview'));
|
$this->addSingleTab($this->translate('Overview'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user