mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05:00
FEATURE: backend support for user-selectable components
* FEATURE: backend support for user-selectable components * fix problems with previewing default theme * rename preview_key => preview_theme_id * omit default theme from child themes dropdown and try a different fix * cache & freeze stylesheets arrays
This commit is contained in:
@@ -27,7 +27,7 @@ describe StylesheetsController do
|
||||
|
||||
it 'can lookup theme specific css' do
|
||||
scheme = ColorScheme.create_from_base(name: "testing", colors: [])
|
||||
theme = Theme.create!(name: "test", color_scheme_id: scheme.id, user_id: -1)
|
||||
theme = Fabricate(:theme, color_scheme_id: scheme.id)
|
||||
|
||||
builder = Stylesheet::Manager.new(:desktop, theme.id)
|
||||
builder.compile
|
||||
|
||||
Reference in New Issue
Block a user