Improved notifications view

This commit is contained in:
2018-03-01 00:06:03 +01:00
parent 25c70eba0d
commit 0c89576f41
8 changed files with 115 additions and 43 deletions

View File

@ -20,4 +20,17 @@ export async function testNotification(arn: AnimeNotifier) {
// Update notification counter
arn.notificationManager.update()
}
// Mark notifications as seen
export async function markNotificationsAsSeen(arn: AnimeNotifier) {
await fetch("/api/mark/notifications/seen", {
credentials: "same-origin"
})
// Update notification counter
arn.notificationManager.update()
// Update notifications
arn.reloadContent()
}