mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 13:58:12 +00:00
Fix: tweak doc detail component behavior while awaiting metadata (#5546)
This commit is contained in:
1 parent
1e4d284b30
commit
6fb4daf03e
3 files changed
+37
-33
No files matched your search
@@ -82,6 +82,7 @@ enum ContentRenderType {
|
||||
Image = 'image',
|
||||
Text = 'text',
|
||||
Other = 'other',
|
||||
Unknown = 'unknown',
|
||||
}
|
||||
|
||||
enum ZoomSetting {
|
||||
@@ -211,6 +212,7 @@ export class DocumentDetailComponent
|
||||
}
|
||||
|
||||
get contentRenderType(): ContentRenderType {
|
||||
if (!this.metadata) return ContentRenderType.Unknown
|
||||
const contentType = this.metadata?.has_archive_version
|
||||
? 'application/pdf'
|
||||
: this.metadata?.original_mime_type
|
||||
|
||||
Reference in new issue
Block a user