mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
15 lines
428 B
JavaScript
15 lines
428 B
JavaScript
export default Ember.Route.extend({
|
|
model(params) {
|
|
const allSteps = this.modelFor('application').steps;
|
|
const step = allSteps.findProperty('id', params.step_id);
|
|
return step ? step : allSteps[0];
|
|
},
|
|
|
|
setupController(controller, step) {
|
|
this.controllerFor('application').set('currentStepId', step.get('id'));
|
|
|
|
controller.setProperties({
|
|
step, wizard: this.modelFor('application')
|
|
});
|
|
}
|
|
});
|