mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Fixes issue on dashboard issues
They would try to load JSON from a project even though it isn't a single project
This commit is contained in:
@ -20,6 +20,24 @@ class DashboardController < Dashboard::ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def labels
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
projects
|
||||
render json: view_context.projects_labels_options
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def milestones
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
projects
|
||||
render json: view_context.projects_milestones_options
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def load_events
|
||||
|
Reference in New Issue
Block a user