mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
notifications are now displayed correctly again
This commit is contained in:
parent
4e25e335a9
commit
402528d97e
2 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,7 @@ template(name='notificationsDrawer')
|
|||
a.fa.fa-times-thin.close
|
||||
ul.notifications
|
||||
each transformedProfile.notifications
|
||||
+notification(activityData=activity index=dbIndex read=read)
|
||||
+notification(activityData=activityObj index=dbIndex read=read)
|
||||
if($gt unreadNotifications 0)
|
||||
a.all-read {{_ 'mark-all-as-read'}}
|
||||
if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
|
||||
|
|
|
@ -852,7 +852,9 @@ Users.helpers({
|
|||
const notification = notifications[index];
|
||||
// this preserves their db sort order for editing
|
||||
notification.dbIndex = index;
|
||||
notification.activity = ReactiveCache.getActivity(notification.activity);
|
||||
if (!notification.activityObj && typeof(notification.activity) === 'string') {
|
||||
notification.activityObj = ReactiveCache.getActivity(notification.activity);
|
||||
}
|
||||
}
|
||||
// this sorts them newest to oldest to match Trello's behavior
|
||||
notifications.reverse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue