Fix loading indicator
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user