use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:15:37 +09:00
parent 3d3ad27ca0
commit eeb5288027
13 changed files with 61 additions and 8 deletions
+9 -1
View File
@@ -392,6 +392,13 @@ export const useNotificationStore = defineStore('Notification', () => {
});
}
/**
* @param {object} entry
*/
function appendNotificationTableEntry(entry) {
notificationTable.value.data.push(entry);
}
/**
*
* @param notificationId
@@ -1474,6 +1481,7 @@ export const useNotificationStore = defineStore('Notification', () => {
isNotificationExpired,
openNotificationLink,
queueMarkAsSeen,
markAllAsSeen
markAllAsSeen,
appendNotificationTableEntry
};
});