content notification read working
This commit is contained in:
parent
ffb8252808
commit
94c5737245
21 changed files with 317 additions and 163 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue