fix video attachments in notifications not having pointer cursor

This commit is contained in:
Henry Jameson 2021-08-15 18:35:26 +03:00
parent 07c12ae162
commit 299c00cf74
2 changed files with 7 additions and 2 deletions

View file

@ -118,6 +118,9 @@ const Attachment = {
}
return modalTypes.includes(this.type)
},
videoTag () {
return this.useModal ? 'button' : 'span'
},
...mapGetters(['mergedConfig'])
},
watch: {

View file

@ -127,9 +127,11 @@
/>
</a>
<span
<component
:is="videoTag"
v-if="type === 'video' && !hidden"
class="video-container"
:class="{ 'button-unstyled': 'isModal' }"
:href="attachment.url"
@click.stop.prevent="openModal"
>
@ -145,7 +147,7 @@
class="play-icon"
icon="play-circle"
/>
</span>
</component>
<span
v-if="type === 'audio' && !hidden"