discourse/app/assets/javascripts/wizard/controllers/step.js.es6

18 lines
372 B
JavaScript

export default Ember.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"));
}
}
});