mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 04:44:59 +00:00
Extracted from https://github.com/discourse/discourse/pull/23678 Co-authored-by: Godfrey Chan <godfreykfc@gmail.com>
32 lines
694 B
JavaScript
32 lines
694 B
JavaScript
import Route from "@ember/routing/route";
|
|
import DisableSidebar from "discourse/mixins/disable-sidebar";
|
|
import Wizard from "wizard/models/wizard";
|
|
|
|
export default class WizardRoute extends Route.extend(DisableSidebar) {
|
|
model() {
|
|
return Wizard.load();
|
|
}
|
|
|
|
activate() {
|
|
super.activate(...arguments);
|
|
|
|
document.body.classList.add("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: false,
|
|
showSiteHeader: false,
|
|
});
|
|
}
|
|
|
|
deactivate() {
|
|
super.deactivate(...arguments);
|
|
|
|
document.body.classList.remove("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: true,
|
|
showSiteHeader: true,
|
|
});
|
|
}
|
|
}
|