support audio attachments
This commit is contained in:
parent
dc3191b187
commit
1bd0351f1b
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@
|
||||||
<div class="attachment-filename">{ attachment.file_name }</div>
|
<div class="attachment-filename">{ attachment.file_name }</div>
|
||||||
<a class="icon-button material-icons-outlined small download" href="{ attachmentUrl(attachment.file) }" target="_blank">download</a>
|
<a class="icon-button material-icons-outlined small download" href="{ attachmentUrl(attachment.file) }" target="_blank">download</a>
|
||||||
</div>
|
</div>
|
||||||
|
{:else if renderAs === AttachmentRenderAs.Audio}
|
||||||
|
<audio controls="controls" class="attachment media" src="{ attachmentUrl(attachment.file) }"></audio>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="attachment attachment-card">Couldn't render attachment</div>
|
<div class="attachment attachment-card">Couldn't render attachment</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue