From 2b059742e9cce7d60fa45a063757181cfa248f65 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 19 Dec 2024 10:37:20 +0100 Subject: [PATCH] comment notification working --- src/components/notifications/Comment.vue | 4 +++- src/components/notifications/Content.vue | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/notifications/Comment.vue b/src/components/notifications/Comment.vue index df173fd..31cfc42 100644 --- a/src/components/notifications/Comment.vue +++ b/src/components/notifications/Comment.vue @@ -3,7 +3,7 @@ class="notification | bg-white rounded-lg | p-16 | flow" :data-status="notification.isread == true ? 'read' : 'unread'" data-type="comment" - @click="read(notification)" + @click="router.push(notification.location.dialoguri + '&comments=true')" >

@@ -37,8 +37,10 @@ diff --git a/src/components/notifications/Content.vue b/src/components/notifications/Content.vue index c87a812..e61e495 100644 --- a/src/components/notifications/Content.vue +++ b/src/components/notifications/Content.vue @@ -3,7 +3,10 @@ class="notification | bg-white rounded-lg | p-16 | flow" :data-status="notification.isread == 'true' ? 'read' : 'unread'" data-type="content" - @click="read(notification)" + @click=" + read(notification); + router.push(notification.location.page.uri); + " title="Aller au contenu" >