2022-06-17 20:50:21 +08:00
|
|
|
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");
|
2022-10-04 14:23:20 +08:00
|
|
|
|
2022-06-17 20:50:21 +08:00
|
|
|
this.controllerFor("application").setProperties({
|
|
|
|
showTop: false,
|
|
|
|
showFooter: false,
|
2022-10-04 14:23:20 +08:00
|
|
|
sidebarDisabledRouteOverride: true,
|
|
|
|
showSiteHeader: false,
|
2022-06-17 20:50:21 +08:00
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
deactivate() {
|
|
|
|
document.body.classList.remove("wizard");
|
2022-10-04 14:23:20 +08:00
|
|
|
|
|
|
|
this.controllerFor("application").setProperties({
|
|
|
|
showTop: true,
|
|
|
|
sidebarDisabledRouteOverride: false,
|
|
|
|
showSiteHeader: true,
|
|
|
|
});
|
2022-06-17 20:50:21 +08:00
|
|
|
},
|
|
|
|
});
|