Include non-gallery attachments and distinguish between images and videos
This commit is contained in:
parent
36e19128bf
commit
e36c39be19
2 changed files with 15 additions and 1 deletions
|
@ -256,6 +256,16 @@ const Status = {
|
||||||
file => !fileType.fileMatchesSomeType(this.galleryTypes, file)
|
file => !fileType.fileMatchesSomeType(this.galleryTypes, file)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
hasImageAttachments () {
|
||||||
|
return this.status.attachments.some(
|
||||||
|
file => fileType.fileType(file.mimetype) === 'image'
|
||||||
|
)
|
||||||
|
},
|
||||||
|
hasVideoAttachments () {
|
||||||
|
return this.status.attachments.some(
|
||||||
|
file => fileType.fileType(file.mimetype) === 'video'
|
||||||
|
)
|
||||||
|
},
|
||||||
maxThumbnails () {
|
maxThumbnails () {
|
||||||
return this.mergedConfig.maxThumbnails
|
return this.mergedConfig.maxThumbnails
|
||||||
},
|
},
|
||||||
|
|
|
@ -280,9 +280,13 @@
|
||||||
>
|
>
|
||||||
{{ $t("general.show_more") }}
|
{{ $t("general.show_more") }}
|
||||||
<span
|
<span
|
||||||
v-if="galleryAttachments.length > 0"
|
v-if="hasImageAttachments"
|
||||||
class="icon-picture"
|
class="icon-picture"
|
||||||
/>
|
/>
|
||||||
|
<span
|
||||||
|
v-if="hasVideoAttachments"
|
||||||
|
class="icon-video"
|
||||||
|
/>
|
||||||
<span
|
<span
|
||||||
v-if="status.card"
|
v-if="status.card"
|
||||||
class="icon-link"
|
class="icon-link"
|
||||||
|
|
Loading…
Reference in a new issue