This commit is contained in:
roschaefer 2019-08-30 13:43:56 +02:00
parent cbcba8f08d
commit 30a95e5713
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template>
<ds-space :class="{ read: notification.read, notification: true}" margin-bottom="x-small">
<ds-space :class="{ read: notification.read, notification: true }" margin-bottom="x-small">
<client-only>
<ds-space margin-bottom="x-small">
<hc-user :user="from.author" :date-time="from.createdAt" :trunc="35" />

View File

@ -47,7 +47,7 @@ export default {
})
if (!(markAsRead && markAsRead.read === true)) return
this.notifications = this.notifications.map(n => {
return (n.from.id === markAsRead.from.id) ? markAsRead : n
return n.from.id === markAsRead.from.id ? markAsRead : n
})
} catch (err) {
throw new Error(err)