refactor: use setter functions for dialog visibility and favorite status in stores

This commit is contained in:
pa
2026-03-08 20:58:33 +09:00
parent ae0152c28e
commit c55d5f0ec7
19 changed files with 376 additions and 102 deletions
+14 -1
View File
@@ -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
};
});