read content notification on click
This commit is contained in:
parent
1fae3dd414
commit
495e1c024e
7 changed files with 25 additions and 16 deletions
|
|
@ -147,7 +147,10 @@ function handleClick() {
|
|||
async function read() {
|
||||
if (getStatus.value !== "unread") return;
|
||||
try {
|
||||
const newNotification = await api.readNotification(comment, page.value.uri);
|
||||
const newNotification = await api.readNotification(
|
||||
comment.id,
|
||||
page.value.uri
|
||||
);
|
||||
userStore.readNotification(comment.id, route.params.id);
|
||||
} catch (error) {
|
||||
console.log("Erreur lors de la lecture de la notification : ", error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue