mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
a couple adjustments for the document viewer.
This commit is contained in:
parent
e77be6a2ed
commit
1c4d19198f
3 changed files with 7 additions and 5 deletions
|
|
@ -59,6 +59,10 @@ export class DocumentDetailComponent implements OnInit {
|
|||
private documentListViewService: DocumentListViewService,
|
||||
private titleService: Title) { }
|
||||
|
||||
getContentType() {
|
||||
return this.metadata?.has_archive_version ? 'application/pdf' : this.metadata?.original_mime_type
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.documentForm.valueChanges.subscribe(wow => {
|
||||
Object.assign(this.document, this.documentForm.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue