Warehouse project/fix
This commit is contained in:
@@ -50,7 +50,7 @@ Vue.component('tt-fullscreen-viewer', {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isImage: file => file?.mimetype?.startsWith('image/'),
|
||||
isImage: file => file?.mimetype?.startsWith('image/') || file?.mimetype === 'application/octet-stream',
|
||||
isPdf: file => file?.mimetype === 'application/pdf',
|
||||
onContentLoad() {
|
||||
this.isLoading = false;
|
||||
@@ -249,7 +249,7 @@ Vue.component('tt-file-gallery', {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
isImage: file => file.mimetype?.startsWith('image/'),
|
||||
isImage: file => file.mimetype?.startsWith('image/') || file.mimetype === 'application/octet-stream',
|
||||
isPdf: file => file.mimetype === 'application/pdf',
|
||||
|
||||
getFileIcon(file) {
|
||||
|
||||
Reference in New Issue
Block a user