mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:38:36 +08:00
19 lines
410 B
JavaScript
19 lines
410 B
JavaScript
import Controller from "@ember/controller";
|
|
export default Controller.extend({
|
|
wizard: null,
|
|
step: null,
|
|
|
|
actions: {
|
|
goNext(response) {
|
|
const next = this.get("step.next");
|
|
if (response.refresh_required) {
|
|
this.send("refresh");
|
|
}
|
|
this.transitionToRoute("step", next);
|
|
},
|
|
goBack() {
|
|
this.transitionToRoute("step", this.get("step.previous"));
|
|
}
|
|
}
|
|
});
|