feat: support audio player on widget (#4250)

This commit is contained in:
giquieu 2022-03-24 04:14:34 -03:00 committed by GitHub
parent b735135431
commit 8b9aea231c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -34,6 +34,9 @@
:readable-time="readableTime"
@error="onImageLoadError"
/>
<audio v-else-if="attachment.file_type === 'audio'" controls>
<source :src="attachment.data_url" />
</audio>
<file-bubble v-else :url="attachment.data_url" />
</div>
</div>