mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
ba2c5c7948
Internal Ref: /t/75929
30 lines
639 B
JavaScript
30 lines
639 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { findWizard } from "wizard/models/wizard";
|
|
|
|
export default Route.extend({
|
|
model() {
|
|
return findWizard();
|
|
},
|
|
|
|
activate() {
|
|
document.body.classList.add("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: false,
|
|
showFooter: false,
|
|
sidebarDisabledRouteOverride: true,
|
|
showSiteHeader: false,
|
|
});
|
|
},
|
|
|
|
deactivate() {
|
|
document.body.classList.remove("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: true,
|
|
sidebarDisabledRouteOverride: false,
|
|
showSiteHeader: true,
|
|
});
|
|
},
|
|
});
|