Navigation: Do not provide "dashlet" as default item type
Please revert this commit once we're about to finish the new implementation. refs #6084
This commit is contained in:
parent
ff25c24825
commit
1c7b398219
|
@ -429,12 +429,14 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
|||
*/
|
||||
public function load($type)
|
||||
{
|
||||
$user = Auth::getInstance()->getUser();
|
||||
if ($type !== 'dashboard-pane') {
|
||||
// Shareables
|
||||
$this->merge(Icinga::app()->getSharedNavigation($type));
|
||||
|
||||
// User Preferences
|
||||
$user = Auth::getInstance()->getUser();
|
||||
$this->merge($user->getNavigation($type));
|
||||
}
|
||||
|
||||
// Modules
|
||||
$moduleManager = Icinga::app()->getModuleManager();
|
||||
|
@ -462,11 +464,11 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
|||
'menu-item' => array(
|
||||
'label' => t('Menu Entry'),
|
||||
'config' => 'menu'
|
||||
),
|
||||
)/*, // Disabled, until it is able to fully replace the old implementation
|
||||
'dashlet' => array(
|
||||
'label' => 'Dashlet',
|
||||
'config' => 'dashboard'
|
||||
)
|
||||
)*/
|
||||
);
|
||||
|
||||
$moduleItemTypes = array();
|
||||
|
|
|
@ -85,6 +85,7 @@ class Dashboard extends AbstractWidget
|
|||
}
|
||||
|
||||
$this->mergePanes($panes);
|
||||
$this->loadUserDashboards();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue