mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
11127446e0
commit
af0cf48197
@ -111,19 +111,23 @@ class DashboardController extends ActionController
|
|||||||
*/
|
*/
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
$dashboard = $this->getDashboard();
|
$dashboard = Dashboard::load();
|
||||||
if ($this->_getParam('pane')) {
|
|
||||||
$pane = $this->_getParam('pane');
|
|
||||||
$dashboard->activate($pane);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->view->configPath = IcingaConfig::resolvePath(self::DEFAULT_CONFIG);
|
if (! $dashboard->hasPanes()) {
|
||||||
|
|
||||||
if ($dashboard === null) {
|
|
||||||
$this->view->title = 'Dashboard';
|
$this->view->title = 'Dashboard';
|
||||||
} else {
|
} else {
|
||||||
$this->view->title = $dashboard->getActivePane()->getTitle() . ' :: Dashboard';
|
if ($this->_getParam('pane')) {
|
||||||
$this->view->tabs = $dashboard->getTabs();
|
$pane = $this->_getParam('pane');
|
||||||
|
$dashboard->activate($pane);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->view->configPath = IcingaConfig::resolvePath(self::DEFAULT_CONFIG);
|
||||||
|
|
||||||
|
if ($dashboard === null) {
|
||||||
|
$this->view->title = 'Dashboard';
|
||||||
|
} else {
|
||||||
|
$this->view->title = $dashboard->getActivePane()->getTitle() . ' :: Dashboard';
|
||||||
|
$this->view->tabs = $dashboard->getTabs();
|
||||||
|
|
||||||
/* Temporarily removed
|
/* Temporarily removed
|
||||||
$this->view->tabs->add(
|
$this->view->tabs->add(
|
||||||
@ -135,8 +139,8 @@ class DashboardController extends ActionController
|
|||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$this->view->dashboard = $dashboard;
|
$this->view->dashboard = $dashboard;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user