27 lines
615 B
JavaScript
27 lines
615 B
JavaScript
import TravisRoute from 'travis/routes/basic';
|
|
|
|
export default TravisRoute.extend({
|
|
model() {
|
|
return this.store.query('account', {
|
|
all: true
|
|
});
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
var orgs, user;
|
|
user = model.filterBy('type', 'user')[0];
|
|
orgs = model.filterBy('type', 'organization');
|
|
controller.set('user', user);
|
|
controller.set('organizations', orgs);
|
|
return controller.set('model', model);
|
|
},
|
|
|
|
renderTemplate() {
|
|
this._super.apply(this, arguments);
|
|
return this.render('profile_accounts', {
|
|
outlet: 'left',
|
|
into: 'profile'
|
|
});
|
|
}
|
|
});
|