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:
2019-07-11 09:59:03 +02:00
parent a73a4da575
commit 8bd7a77d44
3 changed files with 15 additions and 2 deletions
+11 -1
View File
@@ -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);
}
});