FIX: notification dropdown was not visible for group archive

was causing empty message list when navigation back from group message
This commit is contained in:
Gerhard Schlager 2017-11-14 19:01:57 +01:00
parent ee1f68438e
commit 0d8ddaf4ab

View File

@ -8,6 +8,14 @@ export default createPMRoute('groups', 'private-messages-groups').extend({
});
},
afterModel(model) {
const split = model.get("filter").split('/');
const groupName = split[split.length-2];
const groups = this.modelFor("user").get("groups");
const group = _.first(groups.filterBy("name", groupName));
this.controllerFor("user-private-messages").set("group", group);
},
setupController(controller, model) {
this._super.apply(this, arguments);
const split = model.get("filter").split('/');