mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 08:11:15 -05:00
18 lines
413 B
JavaScript
18 lines
413 B
JavaScript
export default Ember.Controller.extend({
|
|
wizard: null,
|
|
step: null,
|
|
|
|
actions: {
|
|
goNext(response) {
|
|
const next = this.get('step.next');
|
|
if (response.refresh_required) {
|
|
document.location = `/wizard/steps/${next}`;
|
|
} else {
|
|
this.transitionToRoute('step', next);
|
|
}
|
|
},
|
|
goBack() {
|
|
this.transitionToRoute('step', this.get('step.previous'));
|
|
},
|
|
}
|
|
});
|