Update webapp/components/NotificationsTable/NotificationsTable.vue

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Markus 2023-03-13 16:56:02 +01:00 committed by GitHub
parent d4149e964d
commit e1a18527cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,15 +59,15 @@
<base-card :wide-content="true"> <base-card :wide-content="true">
<nuxt-link <nuxt-link
class="notification-mention-post" class="notification-mention-post"
:class="{ 'notification-status': n.read }" :class="{ 'notification-status': notification.read }"
:to="{ :to="{
name: 'post-id-slug', name: 'post-id-slug',
params: params(n.from), params: params(notification.from),
hash: hashParam(n.from), hash: hashParam(notification.from),
}" }"
@click.native="markNotificationAsRead(n.from.id)" @click.native="markNotificationAsRead(notification.from.id)"
> >
<b>{{ n.from.title || n.from.post.title | truncate(50) }}</b> <b>{{ notification.from.title || notification.from.post.title | truncate(50) }}</b>
</nuxt-link> </nuxt-link>
</base-card> </base-card>
</ds-flex-item> </ds-flex-item>