fix: edited posts in notifications (#189)

This commit is contained in:
Shinigami 2022-11-27 20:46:12 +01:00 committed by GitHub
parent fa35d73d56
commit 4a3b51dca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,8 +41,21 @@ const { notification } = defineProps<{
</div>
<StatusCard :status="notification.status!" p3 />
</template>
<template v-else-if="notification.type === 'update'">
<div flex ml-4 items-center>
<div i-ri:edit-2-fill mr-3 text-secondary />
<AccountInlineInfo :account="notification.account" mr1 />
updated their status
</div>
<StatusCard :status="notification.status!" p3 />
</template>
<template v-else-if="notification.type === 'mention' || notification.type === 'poll' || notification.type === 'status'">
<StatusCard :status="notification.status!" p3 />
</template>
<template v-else>
<div text-red font-bold>
[DEV] MISSING notification.type: '{{ notification.type }}'
</div>
</template>
</div>
</template>