Add locale step

This commit is contained in:
Robin Ward
2016-09-07 18:04:01 -04:00
parent 3f6e3b9aff
commit c94e6f1b96
25 changed files with 746 additions and 90 deletions

View File

@@ -3,8 +3,13 @@ export default Ember.Controller.extend({
step: null,
actions: {
goNext() {
this.transitionToRoute('step', this.get('step.next'));
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'));