mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-03 05:26:05 +02:00
add mask as read context menu to noti center bell icon
This commit is contained in:
@@ -478,6 +478,20 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
processSeeQueue();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function markAllAsSeen() {
|
||||
const unseenIds = [...unseenNotifications.value];
|
||||
for (const id of unseenIds) {
|
||||
const ref = notificationTable.value.data.find((n) => n.id === id);
|
||||
const version = ref?.version || 1;
|
||||
queueMarkAsSeen(id, version);
|
||||
}
|
||||
unseenNotifications.value = [];
|
||||
uiStore.removeNotify('notification');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param args
|
||||
@@ -1459,6 +1473,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
getNotificationCategory,
|
||||
isNotificationExpired,
|
||||
openNotificationLink,
|
||||
queueMarkAsSeen
|
||||
queueMarkAsSeen,
|
||||
markAllAsSeen
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user