read all working

This commit is contained in:
isUnknown 2025-01-15 16:24:34 +01:00
parent 495e1c024e
commit ef09a04b5e
7 changed files with 105 additions and 65 deletions

View file

@ -21,11 +21,12 @@ export const useUserStore = defineStore("user", () => {
});
});
function readNotification(notificationId, projectSlug) {
function readNotification(notificationId, projectId) {
console.log("Read notification", notificationId, projectId);
projects.value = projects.value.map((project) => ({
...project,
notifications:
project.slug === projectSlug
project.uuid === projectId || project.uri === projectId
? project.notifications.map((notification) =>
notification.id === notificationId
? {