From 53e04e66cf52a4ebf34d7d653d33f8f988d4f5b6 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Sat, 13 Jan 2024 12:28:10 -0800
Subject: [PATCH] Enhancement: warn when outdated doc detected (#5372)
* Update modified property for target docs w bidirectional links
* Warn on doc change detected
---
src-ui/messages.xlf | 201 ++++++++++--------
.../confirm-dialog.component.html | 4 +-
.../confirm-dialog.component.ts | 6 +
.../document-detail.component.spec.ts | 25 ++-
.../document-detail.component.ts | 16 ++
src/documents/serialisers.py | 3 +
6 files changed, 163 insertions(+), 92 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index d2fd2a0b1..a3e9b3330 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -1931,7 +1931,7 @@
src/app/components/document-detail/document-detail.component.ts
- 688
+ 701
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -1970,7 +1970,7 @@
src/app/components/document-detail/document-detail.component.ts
- 690
+ 703
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -2394,13 +2394,6 @@
63
-
- Cancel
-
- src/app/components/common/confirm-dialog/confirm-dialog.component.html
- 16
-
-
Confirmation
@@ -2435,6 +2428,73 @@
439
+
+ Cancel
+
+ src/app/components/common/confirm-dialog/confirm-dialog.component.ts
+ 44
+
+
+ src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html
+ 24
+
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 15
+
+
+ src/app/components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component.html
+ 26
+
+
+ src/app/components/common/edit-dialog/group-edit-dialog/group-edit-dialog.component.html
+ 16
+
+
+ src/app/components/common/edit-dialog/mail-account-edit-dialog/mail-account-edit-dialog.component.html
+ 36
+
+
+ src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.html
+ 48
+
+
+ src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html
+ 25
+
+
+ src/app/components/common/edit-dialog/tag-edit-dialog/tag-edit-dialog.component.html
+ 27
+
+
+ src/app/components/common/edit-dialog/user-edit-dialog/user-edit-dialog.component.html
+ 35
+
+
+ src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html
+ 170
+
+
+ src/app/components/common/permissions-dialog/permissions-dialog.component.html
+ 22
+
+
+ src/app/components/common/profile-edit-dialog/profile-edit-dialog.component.html
+ 57
+
+
+ src/app/components/common/select-dialog/select-dialog.component.html
+ 12
+
+
+ src/app/components/document-list/bulk-editor/bulk-editor.component.html
+ 6
+
+
+ src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html
+ 20
+
+
Create New Field
@@ -2599,69 +2659,6 @@
194
-
- Cancel
-
- src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html
- 24
-
-
- src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
- 15
-
-
- src/app/components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component.html
- 26
-
-
- src/app/components/common/edit-dialog/group-edit-dialog/group-edit-dialog.component.html
- 16
-
-
- src/app/components/common/edit-dialog/mail-account-edit-dialog/mail-account-edit-dialog.component.html
- 36
-
-
- src/app/components/common/edit-dialog/mail-rule-edit-dialog/mail-rule-edit-dialog.component.html
- 48
-
-
- src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html
- 25
-
-
- src/app/components/common/edit-dialog/tag-edit-dialog/tag-edit-dialog.component.html
- 27
-
-
- src/app/components/common/edit-dialog/user-edit-dialog/user-edit-dialog.component.html
- 35
-
-
- src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.html
- 170
-
-
- src/app/components/common/permissions-dialog/permissions-dialog.component.html
- 22
-
-
- src/app/components/common/profile-edit-dialog/profile-edit-dialog.component.html
- 57
-
-
- src/app/components/common/select-dialog/select-dialog.component.html
- 12
-
-
- src/app/components/document-list/bulk-editor/bulk-editor.component.html
- 6
-
-
- src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html
- 20
-
-
Create new correspondent
@@ -4793,47 +4790,75 @@
276,278
+
+ Document changes detected
+
+ src/app/components/document-detail/document-detail.component.ts
+ 298
+
+
+
+ The version of this document in your browser session appears older than the existing version.
+
+ src/app/components/document-detail/document-detail.component.ts
+ 299
+
+
+
+ Saving the document here may overwrite other changes that were made. To restore the existing version, discard your changes or close the document.
+
+ src/app/components/document-detail/document-detail.component.ts
+ 300
+
+
+
+ Ok
+
+ src/app/components/document-detail/document-detail.component.ts
+ 301
+
+
Error retrieving metadata
src/app/components/document-detail/document-detail.component.ts
- 424
+ 437
Error retrieving suggestions.
src/app/components/document-detail/document-detail.component.ts
- 445
+ 458
Document saved successfully.
src/app/components/document-detail/document-detail.component.ts
- 563
+ 576
src/app/components/document-detail/document-detail.component.ts
- 572
+ 585
Error saving document
src/app/components/document-detail/document-detail.component.ts
- 576
+ 589
src/app/components/document-detail/document-detail.component.ts
- 617
+ 630
Confirm delete
src/app/components/document-detail/document-detail.component.ts
- 643
+ 656
src/app/components/manage/management-list/management-list.component.ts
@@ -4844,35 +4869,35 @@
Do you really want to delete document ""?
src/app/components/document-detail/document-detail.component.ts
- 644
+ 657
The files for this document will be deleted permanently. This operation cannot be undone.
src/app/components/document-detail/document-detail.component.ts
- 645
+ 658
Delete document
src/app/components/document-detail/document-detail.component.ts
- 647
+ 660
Error deleting document
src/app/components/document-detail/document-detail.component.ts
- 666
+ 679
Redo OCR confirm
src/app/components/document-detail/document-detail.component.ts
- 686
+ 699
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -4883,28 +4908,28 @@
This operation will permanently redo OCR for this document.
src/app/components/document-detail/document-detail.component.ts
- 687
+ 700
Redo OCR 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
- 698
+ 711
Error executing operation
src/app/components/document-detail/document-detail.component.ts
- 709
+ 722
Page Fit
src/app/components/document-detail/document-detail.component.ts
- 778
+ 791
diff --git a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html
index bb5577061..e25ace612 100644
--- a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html
+++ b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.html
@@ -12,8 +12,8 @@
}