mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-05 04:33:14 +02:00
add checkmark to notification card to mark notification as read
This commit is contained in:
parent
040bb53383
commit
344da326cd
4 changed files with 20 additions and 2 deletions
web/src/app
|
@ -115,6 +115,12 @@ class SubscriptionManager {
|
|||
.delete();
|
||||
}
|
||||
|
||||
async markNotificationRead(notificationId) {
|
||||
await db.notifications
|
||||
.where({id: notificationId, new: 1})
|
||||
.modify({new: 0});
|
||||
}
|
||||
|
||||
async markNotificationsRead(subscriptionId) {
|
||||
await db.notifications
|
||||
.where({subscriptionId: subscriptionId, new: 1})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue