Add self provided configuration for dashlets

refs #6639
This commit is contained in:
Alexander Fuhr 2014-08-26 10:08:33 +02:00
parent 11127446e0
commit af0cf48197
1 changed files with 16 additions and 12 deletions

View File

@ -111,7 +111,11 @@ class DashboardController extends ActionController
*/
public function indexAction()
{
$dashboard = $this->getDashboard();
$dashboard = Dashboard::load();
if (! $dashboard->hasPanes()) {
$this->view->title = 'Dashboard';
} else {
if ($this->_getParam('pane')) {
$pane = $this->_getParam('pane');
$dashboard->activate($pane);
@ -136,7 +140,7 @@ class DashboardController extends ActionController
*/
$this->view->dashboard = $dashboard;
}
}
}