Added previews for videos and audios
This commit is contained in:
parent
4f8d476a2b
commit
6f0c73c30a
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
|||
<div class="attachments">
|
||||
<div class="attachment" v-for="file in newStatus.files">
|
||||
<img class="thumbnail media-upload" :src="file.image" v-if="type(file) === 'image'"></img>
|
||||
<video v-if="type(file) === 'video'" :src="file.image" controls></video>
|
||||
<audio v-if="type(file) === 'audio'" :src="file.image" controls></audio>
|
||||
<a v-if="type(file) === 'unknown'" :href="file.image">{{file.url}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class='form-bottom'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue