2019-10-23 13:06:54 -04:00
|
|
|
import Controller from "@ember/controller";
|
|
|
|
export default Controller.extend({
|
2016-08-25 13:14:56 -04:00
|
|
|
wizard: null,
|
2016-08-24 14:35:07 -04:00
|
|
|
step: null,
|
2016-08-25 13:14:56 -04:00
|
|
|
|
|
|
|
actions: {
|
2016-09-07 18:04:01 -04:00
|
|
|
goNext(response) {
|
2018-06-15 11:03:24 -04:00
|
|
|
const next = this.get("step.next");
|
2016-09-07 18:04:01 -04:00
|
|
|
if (response.refresh_required) {
|
2019-05-01 09:44:45 -04:00
|
|
|
this.send("refresh");
|
2016-09-07 18:04:01 -04:00
|
|
|
}
|
2019-05-01 09:44:45 -04:00
|
|
|
this.transitionToRoute("step", next);
|
2016-08-25 13:14:56 -04:00
|
|
|
},
|
|
|
|
goBack() {
|
2018-06-15 11:03:24 -04:00
|
|
|
this.transitionToRoute("step", this.get("step.previous"));
|
|
|
|
}
|
2016-08-25 13:14:56 -04:00
|
|
|
}
|
2016-08-24 14:35:07 -04:00
|
|
|
});
|