Only use 3-pane layout when profile selected
Later it can be used for contribution details and other things, too.
This commit is contained in:
@@ -7,8 +7,18 @@ export default Route.extend({
|
||||
kredits: service(),
|
||||
contributors: alias('kredits.contributors'),
|
||||
|
||||
model(params) {
|
||||
model (params) {
|
||||
return this.contributors.findBy('id', params.id);
|
||||
},
|
||||
|
||||
activate () {
|
||||
this.controllerFor('dashboard')
|
||||
.set('showDetailsPane', true);
|
||||
},
|
||||
|
||||
deactivate () {
|
||||
this.controllerFor('dashboard')
|
||||
.set('showDetailsPane', false);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user