Skip to content
Snippets Groups Projects
Commit e36c39be authored by xenofem's avatar xenofem
Browse files

Include non-gallery attachments and distinguish between images and videos

parent 36e19128
No related branches found
No related tags found
2 merge requests!1074Update master with 2.0.0,!1056Indicate whether collapsed statuses contain gallery media or link preview cards
......@@ -256,6 +256,16 @@ const Status = {
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 () {
return this.mergedConfig.maxThumbnails
},
......
......@@ -280,9 +280,13 @@
>
{{ $t("general.show_more") }}
<span
v-if="galleryAttachments.length > 0"
v-if="hasImageAttachments"
class="icon-picture"
/>
<span
v-if="hasVideoAttachments"
class="icon-video"
/>
<span
v-if="status.card"
class="icon-link"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment