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'); $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;
} }
} }