diff --git a/frontend/src/components/MediaPreview.vue b/frontend/src/components/MediaPreview.vue index 11a08ad..e75c892 100644 --- a/frontend/src/components/MediaPreview.vue +++ b/frontend/src/components/MediaPreview.vue @@ -2,7 +2,7 @@
- +
diff --git a/frontend/src/repositories/Document.ts b/frontend/src/repositories/Document.ts index 930e51f..6c6124b 100644 --- a/frontend/src/repositories/Document.ts +++ b/frontend/src/repositories/Document.ts @@ -70,7 +70,7 @@ export class Doc { return ['mp4', 'mkv', 'webm', 'ogg', 'mp3', 'flac', 'aac', 'pdf'].includes(this.ext) } get previewurl(): string { - if (!this.complete || this.dir) return '' + if (!this.complete || !this.previewable) return '' return this.url.replace(/^\/files/, '/preview') } get ext(): string {