Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-05-06 01:47:32 +0300
committerJacob Schatz <jschatz@gitlab.com>2017-05-06 01:47:32 +0300
commitb51f2a60800829ee7585f10451a41bc4db0359a9 (patch)
tree2ea7ea74e3fa867b2eadf5ffc8652022b25b2321 /app/controllers/groups/labels_controller.rb
parent9e041f2185ecb957e1f3d1205ea3bac54a5eb803 (diff)
Colorize labels in issue search field
Diffstat (limited to 'app/controllers/groups/labels_controller.rb')
-rw-r--r--app/controllers/groups/labels_controller.rb2
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