mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:31:13 +08:00
DEV: Make wizard an ember addon (#17027)
Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
@ -27,6 +27,7 @@ class BootstrapController < ApplicationController
|
||||
add_style(mobile_view? ? :mobile : :desktop)
|
||||
end
|
||||
add_style(:admin) if staff?
|
||||
add_style(:wizard) if admin?
|
||||
|
||||
assets_fake_request = ActionDispatch::Request.new(request.env.dup)
|
||||
assets_for_url = params[:for_url]
|
||||
@ -51,10 +52,15 @@ class BootstrapController < ApplicationController
|
||||
if ExtraLocalesController.client_overrides_exist?
|
||||
extra_locales << ExtraLocalesController.url('overrides')
|
||||
end
|
||||
|
||||
if staff?
|
||||
extra_locales << ExtraLocalesController.url('admin')
|
||||
end
|
||||
|
||||
if admin?
|
||||
extra_locales << ExtraLocalesController.url('wizard')
|
||||
end
|
||||
|
||||
plugin_js = Discourse.find_plugin_js_assets(
|
||||
include_official: allow_plugins?,
|
||||
include_unofficial: allow_third_party_plugins?,
|
||||
|
Reference in New Issue
Block a user