Fix loading indicator

This commit is contained in:
shamoon
2023-11-24 15:54:27 -08:00
parent d3747f40f2
commit 014c24b8cf
2 changed files with 1 additions and 9 deletions

View File

@@ -157,7 +157,6 @@ export class DocumentDetailComponent
previewCurrentPage: number = 1
previewNumPages: number = 1
previewZoomSetting: ZoomSetting = ZoomSetting.Width
previewLoading: boolean = true
printLoadingModal: NgbModalRef
@@ -451,8 +450,6 @@ export class DocumentDetailComponent
.subscribe({
next: (result) => {
this.metadata = result
if (this.getContentType() !== 'application/pdf')
this.previewLoading = false
},
error: (error) => {
this.metadata = null
@@ -774,10 +771,6 @@ export class DocumentDetailComponent
})
}
onPdfLoadingStarts() {
this.previewLoading = false
}
onPagesLoaded(event: PagesLoadedEvent) {
this.previewNumPages = event.pagesCount
}