Include non-gallery attachments and distinguish between images and videos

このコミットが含まれているのは:
xenofem 2020-02-08 16:01:01 -05:00
コミット e36c39be19
2個のファイルの変更15行の追加1行の削除

ファイルの表示

@ -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"