2020-10-01 08:33:22 +00:00
|
|
|
import Route from 'consul-ui/routing/route';
|
2020-05-13 15:28:11 +00:00
|
|
|
|
|
|
|
export default Route.extend({
|
|
|
|
model: function() {
|
|
|
|
const parent = this.routeName
|
|
|
|
.split('.')
|
|
|
|
.slice(0, -1)
|
|
|
|
.join('.');
|
|
|
|
return this.modelFor(parent);
|
|
|
|
},
|
|
|
|
setupController: function(controller, model) {
|
2020-10-01 08:33:22 +00:00
|
|
|
this._super(...arguments);
|
2020-05-13 15:28:11 +00:00
|
|
|
controller.setProperties(model);
|
|
|
|
},
|
|
|
|
});
|