Include non-gallery attachments and distinguish between images and videos

This commit is contained in:
xenofem 2020-02-08 16:01:01 -05:00
parent 36e19128bf
commit e36c39be19
2 changed files with 15 additions and 1 deletions

View file

@ -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
},