mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
refactor: use setter functions for dialog visibility and favorite status in stores
This commit is contained in:
@@ -399,6 +399,17 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
notificationTable.value.data.push(entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
*/
|
||||
function setNotificationInitStatus(value) {
|
||||
notificationInitStatus.value = value;
|
||||
}
|
||||
|
||||
function clearUnseenNotifications() {
|
||||
unseenNotifications.value = [];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param notificationId
|
||||
@@ -1482,6 +1493,8 @@ export const useNotificationStore = defineStore('Notification', () => {
|
||||
openNotificationLink,
|
||||
queueMarkAsSeen,
|
||||
markAllAsSeen,
|
||||
appendNotificationTableEntry
|
||||
appendNotificationTableEntry,
|
||||
setNotificationInitStatus,
|
||||
clearUnseenNotifications
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user