diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-05-06 01:47:32 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-05-06 01:47:32 +0300 |
commit | b51f2a60800829ee7585f10451a41bc4db0359a9 (patch) | |
tree | 2ea7ea74e3fa867b2eadf5ffc8652022b25b2321 /app/controllers/dashboard/labels_controller.rb | |
parent | 9e041f2185ecb957e1f3d1205ea3bac54a5eb803 (diff) |
Colorize labels in issue search field
Diffstat (limited to 'app/controllers/dashboard/labels_controller.rb')
-rw-r--r-- | app/controllers/dashboard/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard/labels_controller.rb b/app/controllers/dashboard/labels_controller.rb index d5031da867a..dd1d46a68c7 100644 --- a/app/controllers/dashboard/labels_controller.rb +++ b/app/controllers/dashboard/labels_controller.rb @@ -3,7 +3,7 @@ class Dashboard::LabelsController < Dashboard::ApplicationController labels = LabelsFinder.new(current_user).execute respond_to do |format| - format.json { render json: labels.as_json(only: [:id, :title, :color]) } + format.json { render json: LabelSerializer.new.represent_appearance(labels) } end end end |