From 51359a1fb8976292b4735715e5cb4cbf664ab34b Mon Sep 17 00:00:00 2001 From: Nathan Friend Date: Tue, 8 Jan 2019 09:10:48 -0400 Subject: 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. --- app/models/label.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/models/label.rb b/app/models/label.rb index 5d2d1afd1d9..1c3db3eb35d 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -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 -- cgit v1.2.1