add a "remove all read" button to notification menu

This commit is contained in:
Jonathan Baird 2020-04-08 13:14:29 -06:00
parent 1e20e2601f
commit a182dde11f
4 changed files with 32 additions and 1 deletions

View file

@ -14,3 +14,7 @@ template(name='notificationsDrawer')
+notification(activityData=activity index=dbIndex read=read)
if($gt unreadNotifications 0)
a.all-read {{_ 'mark-all-as-read'}}
if ($and ($.Session.get 'showReadNotifications') ($gt readNotifications 0))
a.remove-read
i.fa.fa-trash
| {{_ 'remove-all-read'}}