diff --git a/app/assets/javascripts/discourse/app/components/discourse-root.js b/app/assets/javascripts/discourse/app/components/discourse-root.js new file mode 100644 index 00000000000..49a5fe660ed --- /dev/null +++ b/app/assets/javascripts/discourse/app/components/discourse-root.js @@ -0,0 +1,10 @@ +import Component from "@ember/component"; + +let componentArgs = { tagName: "div" }; + +// TODO: Once we've moved to Ember CLI completely we can remove this. +if (!Ember.FEATURES.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE) { + componentArgs = { tagName: "" }; +} + +export default Component.extend(componentArgs); diff --git a/app/assets/javascripts/discourse/app/templates/application.hbs b/app/assets/javascripts/discourse/app/templates/application.hbs index 0d304c549a6..8b3ecd788e2 100644 --- a/app/assets/javascripts/discourse/app/templates/application.hbs +++ b/app/assets/javascripts/discourse/app/templates/application.hbs @@ -1,42 +1,44 @@ -{{d-document}} -{{plugin-outlet name="above-site-header" tagName=""}} -{{site-header canSignUp=canSignUp - showCreateAccount=(route-action "showCreateAccount") - showLogin=(route-action "showLogin") - showKeyboard=(route-action "showKeyboardShortcutsHelp") - toggleMobileView=(route-action "toggleMobileView") - toggleAnonymous=(route-action "toggleAnonymous") - logout=(route-action "logout")}} -{{software-update-prompt id="software-update-prompt"}} +{{#discourse-root}} + {{d-document}} + {{plugin-outlet name="above-site-header" tagName=""}} + {{site-header canSignUp=canSignUp + showCreateAccount=(route-action "showCreateAccount") + showLogin=(route-action "showLogin") + showKeyboard=(route-action "showKeyboardShortcutsHelp") + toggleMobileView=(route-action "toggleMobileView") + toggleAnonymous=(route-action "toggleAnonymous") + logout=(route-action "logout")}} + {{software-update-prompt id="software-update-prompt"}} -{{plugin-outlet name="below-site-header" tagName="" args=(hash currentPath=router._router.currentPath)}} + {{plugin-outlet name="below-site-header" tagName="" args=(hash currentPath=router._router.currentPath)}} -