Account for RootController for dashboard navigation and Dispatch JS
This commit is contained in:
parent
94d3c1433d
commit
6de3958364
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ class Dispatcher
|
|||
when 'projects:merge_requests:index'
|
||||
shortcut_handler = new ShortcutsNavigation()
|
||||
MergeRequests.init()
|
||||
when 'dashboard:show'
|
||||
when 'dashboard:show', 'root:show'
|
||||
new Dashboard()
|
||||
new Activities()
|
||||
when 'dashboard:projects:starred'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%ul.nav.nav-sidebar
|
||||
= nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
|
||||
= nav_link(path: ['dashboard#show', 'root#show'], html_options: {class: 'home'}) do
|
||||
= link_to dashboard_path, title: 'Home', class: 'shortcuts-activity', data: {placement: 'right'} do
|
||||
= icon('dashboard fw')
|
||||
%span
|
||||
|
|
Loading…
Reference in a new issue