a couple adjustments for the document viewer.

This commit is contained in:
jonaswinkler
2020-12-12 22:56:44 +01:00
parent e77be6a2ed
commit 1c4d19198f
3 changed files with 7 additions and 5 deletions

View File

@@ -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)