parent
bec0085683
commit
89b36f79b2
|
@ -63,20 +63,16 @@ class DashboardController extends ActionController
|
||||||
$pane = $this->_getParam('pane');
|
$pane = $this->_getParam('pane');
|
||||||
$dashboard->activate($pane);
|
$dashboard->activate($pane);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dashboard === null) {
|
if ($dashboard === null) {
|
||||||
$this->view->title = 'Dashboard';
|
$this->view->title = 'Dashboard';
|
||||||
} else {
|
} else {
|
||||||
$this->view->title = $dashboard->getActivePane()->getTitle() . ' :: Dashboard';
|
$this->view->title = $dashboard->getActivePane()->getTitle() . ' :: Dashboard';
|
||||||
$this->view->tabs = $dashboard->getTabs();
|
$this->view->tabs = $dashboard->getTabs();
|
||||||
|
|
||||||
if ($this->hasParam('remove')) {
|
if ($this->hasParam('remove')) {
|
||||||
$dashboard->getActivePane()->removeComponent($this->getParam('remove'));
|
$dashboard->getActivePane()->removeComponent($this->getParam('remove'));
|
||||||
$dashboard->write();
|
$dashboard->write();
|
||||||
$this->redirectNow(URL::fromRequest()->remove('remove'));
|
$this->redirectNow(URL::fromRequest()->remove('remove'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Temporarily removed
|
|
||||||
$this->view->tabs->add(
|
$this->view->tabs->add(
|
||||||
'Add',
|
'Add',
|
||||||
array(
|
array(
|
||||||
|
@ -84,8 +80,6 @@ class DashboardController extends ActionController
|
||||||
'url' => Url::fromPath('dashboard/addurl')
|
'url' => Url::fromPath('dashboard/addurl')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
|
|
||||||
$this->view->dashboard = $dashboard;
|
$this->view->dashboard = $dashboard;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue