mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 23:44:48 +08:00
FIX: ensures we have a color for reports (#6396)
This commit is contained in:
@ -29,8 +29,10 @@ class Report
|
|||||||
@modes = [:table, :chart]
|
@modes = [:table, :chart]
|
||||||
@prev_data = nil
|
@prev_data = nil
|
||||||
@dates_filtering = true
|
@dates_filtering = true
|
||||||
@primary_color = rgba_color(ColorScheme.hex_for_name('tertiary'))
|
|
||||||
@secondary_color = rgba_color(ColorScheme.hex_for_name('tertiary'), 0.1)
|
tertiary = ColorScheme.hex_for_name('tertiary') || '0088cc'
|
||||||
|
@primary_color = rgba_color(tertiary)
|
||||||
|
@secondary_color = rgba_color(tertiary, 0.1)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.cache_key(report)
|
def self.cache_key(report)
|
||||||
|
Reference in New Issue
Block a user