mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 07:53:42 +08:00
b3d1707b65
Extracted from https://github.com/discourse/discourse/pull/23678 Co-authored-by: Godfrey Chan <godfreykfc@gmail.com>
12 lines
319 B
JavaScript
12 lines
319 B
JavaScript
import { inject as service } from "@ember/service";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class WizardIndexRoute extends DiscourseRoute {
|
|
@service router;
|
|
|
|
beforeModel() {
|
|
const wizard = this.modelFor("wizard");
|
|
this.router.replaceWith("wizard.step", wizard.start);
|
|
}
|
|
}
|