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