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)
|
||||
)
|
||||
},
|
||||
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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue