From 1d5e7e930e1dfbb221f9b6085c8a36a692b7ccf4 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 13 Jan 2025 09:53:39 -0800
Subject: [PATCH] Fix: complete load with native PDF viewer (#8699)
---
src-ui/messages.xlf | 72 +++++++++----------
.../document-detail.component.ts | 5 +-
2 files changed, 40 insertions(+), 37 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 531a90fe0..8f906be21 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -2232,7 +2232,7 @@
src/app/components/document-detail/document-detail.component.ts
- 919
+ 922
@@ -2509,19 +2509,19 @@
src/app/components/document-detail/document-detail.component.ts
- 943
+ 946
src/app/components/document-detail/document-detail.component.ts
- 1250
+ 1253
src/app/components/document-detail/document-detail.component.ts
- 1289
+ 1292
src/app/components/document-detail/document-detail.component.ts
- 1330
+ 1333
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -3115,7 +3115,7 @@
src/app/components/document-detail/document-detail.component.ts
- 896
+ 899
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -6205,7 +6205,7 @@
src/app/components/document-detail/document-detail.component.ts
- 1307
+ 1310
src/app/guards/dirty-saved-view.guard.ts
@@ -6566,50 +6566,50 @@
Error retrieving metadata
src/app/components/document-detail/document-detail.component.ts
- 630
+ 633
Error retrieving suggestions.
src/app/components/document-detail/document-detail.component.ts
- 659
+ 662
Document saved successfully.
src/app/components/document-detail/document-detail.component.ts
- 810
+ 813
src/app/components/document-detail/document-detail.component.ts
- 824
+ 827
Error saving document
src/app/components/document-detail/document-detail.component.ts
- 828
+ 831
src/app/components/document-detail/document-detail.component.ts
- 869
+ 872
Do you really want to move the document "" to the trash?
src/app/components/document-detail/document-detail.component.ts
- 897
+ 900
Documents can be restored prior to permanent deletion.
src/app/components/document-detail/document-detail.component.ts
- 898
+ 901
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -6620,7 +6620,7 @@
Move to trash
src/app/components/document-detail/document-detail.component.ts
- 900
+ 903
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -6631,7 +6631,7 @@
Reprocess confirm
src/app/components/document-detail/document-detail.component.ts
- 939
+ 942
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -6642,70 +6642,70 @@
This operation will permanently recreate the archive file for this document.
src/app/components/document-detail/document-detail.component.ts
- 940
+ 943
The archive file will be re-generated with the current settings.
src/app/components/document-detail/document-detail.component.ts
- 941
+ 944
Reprocess operation will begin in the background. Close and re-open or reload this document after the operation has completed to see new content.
src/app/components/document-detail/document-detail.component.ts
- 951
+ 954
Error executing operation
src/app/components/document-detail/document-detail.component.ts
- 962
+ 965
Page Fit
src/app/components/document-detail/document-detail.component.ts
- 1035
+ 1038
Split confirm
src/app/components/document-detail/document-detail.component.ts
- 1248
+ 1251
This operation will split the selected document(s) into new documents.
src/app/components/document-detail/document-detail.component.ts
- 1249
+ 1252
Split operation will begin in the background.
src/app/components/document-detail/document-detail.component.ts
- 1265
+ 1268
Error executing split operation
src/app/components/document-detail/document-detail.component.ts
- 1274
+ 1277
Rotate confirm
src/app/components/document-detail/document-detail.component.ts
- 1287
+ 1290
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -6716,60 +6716,60 @@
This operation will permanently rotate the original version of the current document.
src/app/components/document-detail/document-detail.component.ts
- 1288
+ 1291
Rotation will begin in the background. Close and re-open the document after the operation has completed to see the changes.
src/app/components/document-detail/document-detail.component.ts
- 1304
+ 1307
Error executing rotate operation
src/app/components/document-detail/document-detail.component.ts
- 1316
+ 1319
Delete pages confirm
src/app/components/document-detail/document-detail.component.ts
- 1328
+ 1331
This operation will permanently delete the selected pages from the original document.
src/app/components/document-detail/document-detail.component.ts
- 1329
+ 1332
Delete pages operation will begin in the background. Close and re-open or reload this document after the operation has completed to see the changes.
src/app/components/document-detail/document-detail.component.ts
- 1344
+ 1347
Error executing delete pages operation
src/app/components/document-detail/document-detail.component.ts
- 1353
+ 1356
An error occurred loading tiff:
src/app/components/document-detail/document-detail.component.ts
- 1393
+ 1396
src/app/components/document-detail/document-detail.component.ts
- 1397
+ 1400
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts
index 751dc0e11..88e719005 100644
--- a/src-ui/src/app/components/document-detail/document-detail.component.ts
+++ b/src-ui/src/app/components/document-detail/document-detail.component.ts
@@ -620,7 +620,10 @@ export class DocumentDetailComponent
.subscribe({
next: (result) => {
this.metadata = result
- if (this.archiveContentRenderType !== ContentRenderType.PDF) {
+ if (
+ this.archiveContentRenderType !== ContentRenderType.PDF ||
+ this.useNativePdfViewer
+ ) {
this.previewLoaded = true
}
},