Fix inconsistent label foreground color

In different parts of the application, the same label was being rendered
with a different foreground color. This was due to the "textColor" JSON
property not being generated by the backend. This commit adds
this property to JSON representation of labels.
This commit is contained in:
Nathan Friend 2019-01-08 09:10:48 -04:00
parent 5e01cf7224
commit 51359a1fb8
No known key found for this signature in database
GPG Key ID: 3D430247AEED8395
2 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,7 @@ class Label < ActiveRecord::Base
super(options).tap do |json|
json[:type] = self.try(:type)
json[:priority] = priority(options[:project]) if options.key?(:project)
json[:textColor] = text_color
end
end

View File

@ -0,0 +1,5 @@
---
title: Fix foreground color for labels to ensure consistency of label appearance
merge_request: 23873
author: Nathan Friend
type: fixed