mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 22:43:59 +08:00
1bbb41a901
This hides the sidebar to make the signup experience less confusing. Co-authored-by: Ella E <ella.estigoy@gmail.com>
33 lines
697 B
JavaScript
33 lines
697 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { findWizard } from "wizard/models/wizard";
|
|
import DisableSidebar from "discourse/mixins/disable-sidebar";
|
|
|
|
export default Route.extend(DisableSidebar, {
|
|
model() {
|
|
return findWizard();
|
|
},
|
|
|
|
activate() {
|
|
this._super(...arguments);
|
|
|
|
document.body.classList.add("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: false,
|
|
showFooter: false,
|
|
showSiteHeader: false,
|
|
});
|
|
},
|
|
|
|
deactivate() {
|
|
this._super(...arguments);
|
|
|
|
document.body.classList.remove("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: true,
|
|
showSiteHeader: true,
|
|
});
|
|
},
|
|
});
|