DashboardController: remove obsolete comments

This commit is contained in:
Thomas Gelf 2017-08-16 14:29:04 +02:00
parent 4c177fc4ea
commit 14b5c67ff2
1 changed files with 0 additions and 2 deletions

View File

@ -21,11 +21,9 @@ class DashboardController extends ActionController
$this->setTitle($this->translate('Icinga Director - Main Dashboard'));
$names = $this->params->getValues('name', $mainDashboards);
if (count($names) === 1) {
// TODO: Find a better way for this
$name = $names[0];
$dashboard = Dashboard::loadByName($name, $this->db());
$this->tabs($dashboard->getTabs())->activate($name);
// $this->addSingleTab($this->translate(ucfirst($name)));
} else {
$this->addSingleTab($this->translate('Overview'));
}