diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-05-05 22:47:32 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-05-05 22:47:32 +0000 |
commit | b51f2a60800829ee7585f10451a41bc4db0359a9 (patch) | |
tree | 2ea7ea74e3fa867b2eadf5ffc8652022b25b2321 /app/controllers/groups | |
parent | 9e041f2185ecb957e1f3d1205ea3bac54a5eb803 (diff) | |
download | gitlab-ce-b51f2a60800829ee7585f10451a41bc4db0359a9.tar.gz |
Colorize labels in issue search field
Diffstat (limited to 'app/controllers/groups')
-rw-r--r-- | app/controllers/groups/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups/labels_controller.rb b/app/controllers/groups/labels_controller.rb index facb25525b5..3fa0516fb0c 100644 --- a/app/controllers/groups/labels_controller.rb +++ b/app/controllers/groups/labels_controller.rb @@ -15,7 +15,7 @@ class Groups::LabelsController < Groups::ApplicationController format.json do available_labels = LabelsFinder.new(current_user, group_id: @group.id).execute - render json: available_labels.as_json(only: [:id, :title, :color]) + render json: LabelSerializer.new.represent_appearance(available_labels) end end end |