mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-02 19:35:53 +02:00
Add "mark as read" button
This commit is contained in:
parent
344da326cd
commit
15ac5ed23b
5 changed files with 13 additions and 10 deletions
web/src/app
|
@ -117,7 +117,7 @@ class SubscriptionManager {
|
|||
|
||||
async markNotificationRead(notificationId) {
|
||||
await db.notifications
|
||||
.where({id: notificationId, new: 1})
|
||||
.where({id: notificationId})
|
||||
.modify({new: 0});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue