discourse/app/assets/javascripts/wizard/addon/routes/wizard.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
639 B
JavaScript
Raw Normal View History

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,
});
},
});