mark all as ready upon loading notifs

This commit is contained in:
ThatOneCalculator 2022-08-16 00:02:04 -07:00
parent e9b9df5efb
commit 07c6b399f6

View file

@ -27,6 +27,7 @@ import { definePageMetadata } from '@/scripts/page-metadata';
let tab = $ref('all'); let tab = $ref('all');
let includeTypes = $ref<string[] | null>(null); let includeTypes = $ref<string[] | null>(null);
let unreadOnly = $computed(() => tab === 'unread'); let unreadOnly = $computed(() => tab === 'unread');
os.apiWithDialog('notifications/mark-all-as-read');
const mentionsPagination = { const mentionsPagination = {
endpoint: 'notes/mentions' as const, endpoint: 'notes/mentions' as const,