Files
kredits-web/app/routes/dashboard/contributors/show.js
T
basti 8bd7a77d44 Only use 3-pane layout when profile selected
Later it can be used for contribution details and other things, too.
2019-07-11 09:59:03 +02:00

25 lines
523 B
JavaScript

import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { alias } from '@ember/object/computed';
export default Route.extend({
kredits: service(),
contributors: alias('kredits.contributors'),
model (params) {
return this.contributors.findBy('id', params.id);
},
activate () {
this.controllerFor('dashboard')
.set('showDetailsPane', true);
},
deactivate () {
this.controllerFor('dashboard')
.set('showDetailsPane', false);
}
});