read all working
This commit is contained in:
parent
495e1c024e
commit
ef09a04b5e
7 changed files with 105 additions and 65 deletions
|
|
@ -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
|
||||
? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue