mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:46:10 +08:00
Actually sort notifications (please)
This commit is contained in:
parent
07e2698504
commit
63654bf195
@ -28,10 +28,10 @@ export default class UserNotifications extends Component {
|
||||
var key = discussion ? discussion.id() : 0;
|
||||
groupsObject[key] = groupsObject[key] || {discussion: discussion, notifications: []};
|
||||
groupsObject[key].notifications.push(notification);
|
||||
if (groups.indexOf(groupsObject[key]) === -1) {
|
||||
groups.push(groupsObject[key]);
|
||||
}
|
||||
});
|
||||
for (var i in groupsObject) {
|
||||
groups.push(groupsObject[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return DropdownButton.component({
|
||||
|
Loading…
x
Reference in New Issue
Block a user