Dashboard: Reenable generic add link in tab bar

refs #4537
This commit is contained in:
Marius Hein 2014-11-12 12:02:05 +01:00
parent bec0085683
commit 89b36f79b2
1 changed files with 0 additions and 6 deletions

View File

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