mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 19:53:43 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
32 lines
672 B
JavaScript
32 lines
672 B
JavaScript
import Route from "@ember/routing/route";
|
|
import DisableSidebar from "discourse/mixins/disable-sidebar";
|
|
import { findWizard } from "wizard/models/wizard";
|
|
|
|
export default Route.extend(DisableSidebar, {
|
|
model() {
|
|
return findWizard();
|
|
},
|
|
|
|
activate() {
|
|
this._super(...arguments);
|
|
|
|
document.body.classList.add("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: false,
|
|
showSiteHeader: false,
|
|
});
|
|
},
|
|
|
|
deactivate() {
|
|
this._super(...arguments);
|
|
|
|
document.body.classList.remove("wizard");
|
|
|
|
this.controllerFor("application").setProperties({
|
|
showTop: true,
|
|
showSiteHeader: true,
|
|
});
|
|
},
|
|
});
|