mirror of
https://github.com/discourse/discourse.git
synced 2025-03-08 04:09:53 +00:00
FIX: ensures we have a color for reports (#6396)
This commit is contained in:
parent
7bf8b0d305
commit
18fcd483f2
@ -29,8 +29,10 @@ class Report
|
||||
@modes = [:table, :chart]
|
||||
@prev_data = nil
|
||||
@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
|
||||
|
||||
def self.cache_key(report)
|
||||
|
Loading…
x
Reference in New Issue
Block a user