mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:12:46 +08:00
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:
parent
ee1f68438e
commit
0d8ddaf4ab
|
@ -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('/');
|
||||
|
|
Loading…
Reference in New Issue
Block a user