This commit is contained in:
Moriz Wahl 2023-03-16 15:14:27 +01:00
parent a25e6eb326
commit 1501bcb06c
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,10 @@
<template>
<article :class="{ '--read': notification.read, notification: true }">
<client-only>
<user-teaser :user="isGroup ? notification.relatedUser : from.author" :date-time="from.createdAt" />
<user-teaser
:user="isGroup ? notification.relatedUser : from.author"
:date-time="from.createdAt"
/>
</client-only>
<p class="description">{{ $t(`notifications.reason.${notification.reason}`) }}</p>
<nuxt-link

View File

@ -40,7 +40,9 @@
<client-only>
<user-teaser
:user="
isGroup(notification.from) ? notification.relatedUser : notification.from.author
isGroup(notification.from)
? notification.relatedUser
: notification.from.author
"
:date-time="notification.from.createdAt"
:class="{ 'notification-status': notification.read }"