mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
Actually sort notifications (please)
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user