Commit 36f67b30 authored by Fatih Acet's avatar Fatih Acet

Show dashboard related options in the search dropdown.

parent 495d27be
...@@ -132,12 +132,14 @@ class @SearchAutocomplete ...@@ -132,12 +132,14 @@ class @SearchAutocomplete
getCategoryContents: -> getCategoryContents: ->
userId = gon.current_user_id userId = gon.current_user_id
projectName = 'Dashboard'
projectSlug = gl.utils.getProjectSlug() projectSlug = gl.utils.getProjectSlug()
projectOptions = gl.projectOptions[projectSlug] projectOptions = gl.projectOptions[projectSlug]
return null if not projectSlug or not projectOptions if projectSlug and projectOptions
{ issuesPath, mrPath, projectName } = projectOptions { issuesPath, mrPath, projectName } = projectOptions
else
{ issuesPath, mrPath } = gl.dashboardOptions
return [ return [
{ header: "Go to in #{projectName}" } { header: "Go to in #{projectName}" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment