content notification read working

This commit is contained in:
isUnknown 2024-12-19 10:32:48 +01:00
parent ffb8252808
commit 94c5737245
21 changed files with 317 additions and 163 deletions

View file

@ -16,7 +16,7 @@
<time
class="comment__date"
:datetime="dayjs(comment.date).format('YYYY-MM-DD')"
>{{ formatDate() }}</time
>{{ formatDate(comment.date) }}</time
>
</p>
</header>
@ -74,7 +74,7 @@ const status = computed(() => {
const correspondingNotification = userStore.notifications.find(
(notification) => notification.id === comment.id
);
if (correspondingNotification && !correspondingNotification.isRead) {
if (correspondingNotification && !correspondingNotification.isread) {
return "unread";
}
return undefined;