mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
notifications are now always ordered from newest to oldest activity
This commit is contained in:
parent
c4882707e9
commit
00e60ff855
1 changed files with 3 additions and 3 deletions
|
@ -856,9 +856,9 @@ Users.helpers({
|
|||
notification.activityObj = ReactiveMiniMongoIndex.getActivityWithId(notification.activity);
|
||||
}
|
||||
}
|
||||
// this sorts them newest to oldest to match Trello's behavior
|
||||
notifications.reverse();
|
||||
return notifications;
|
||||
// newest first. don't use reverse() because it changes the array inplace, so sometimes the array is reversed twice and oldest items at top again
|
||||
const ret = notifications.toReversed();
|
||||
return ret;
|
||||
},
|
||||
|
||||
hasShowDesktopDragHandles() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue