mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 20:03:39 +08:00
FIX: group notification drop down not populated on user page
This commit is contained in:
parent
01281b6364
commit
fcf1777ddf
|
@ -8,6 +8,13 @@ export default createPMRoute('groups', 'private-messages-groups').extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
afterModel(model) {
|
||||||
|
const groupName = _.last(model.get("filter").split('/'));
|
||||||
|
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) {
|
setupController(controller, model) {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
const group = _.last(model.get("filter").split('/'));
|
const group = _.last(model.get("filter").split('/'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user