f2d5c5fc26
closes #5317 - Adds back button to steps 2 and 3 - Prevents user navigating from step 1 to step 3 unless blog has been created - Prevents user navigating from step 2 to step 3 unless blog has been created
10 lines
226 B
JavaScript
10 lines
226 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Route.extend({
|
|
beforeModel: function () {
|
|
if (!this.controllerFor('setup.two').get('blogCreated')) {
|
|
this.transitionTo('setup.two');
|
|
}
|
|
}
|
|
});
|