Warehouse project/fix

This commit is contained in:
Luca Haid
2025-12-03 14:08:44 +00:00
parent ff070bac73
commit 594a926262
10 changed files with 1560 additions and 735 deletions
@@ -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) {