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

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

11 lines
303 B
JavaScript
Raw Normal View History

import DiscourseRoute from "discourse/routes/discourse";
import { inject as service } from "@ember/service";
export default DiscourseRoute.extend({
router: service(),
beforeModel() {
const appModel = this.modelFor("wizard");
this.router.replaceWith("wizard.step", appModel.start);
},
});