replace poll with an icon in notifications

This commit is contained in:
Henry Jameson 2021-08-15 18:26:37 +03:00
parent c8a7b6f433
commit 07c12ae162

View file

@ -10,13 +10,20 @@
:single-line="singleLine"
@parseReady="$emit('parseReady', $event)"
>
<div v-if="status.poll && status.poll.options">
<div v-if="status.poll && status.poll.options && !compact">
<Poll
:base-poll="status.poll"
:emoji="status.emojis"
/>
</div>
<div v-else-if="status.poll && status.poll.options && compact">
<FAIcon
icon="poll-h"
size="2x"
/>
</div>
<gallery
v-if="status.attachments.length !== 0"
class="attachments media-body"