From 9569309709fc52c246e866fdbd1ff3e3171b1d3c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 2 Aug 2026 17:38:25 -0700 Subject: [PATCH] Also support choosing a doc as a version from detail view See https://github.com/paperless-ngx/paperless-ngx/discussions/13467 --- docs/usage.md | 1 + ...ing-document-version-dialog.component.html | 18 ++++++ ...-document-version-dialog.component.spec.ts | 56 +++++++++++++++++++ ...sting-document-version-dialog.component.ts | 28 ++++++++++ .../document-version-dropdown.component.html | 27 ++++++--- ...ocument-version-dropdown.component.spec.ts | 53 +++++++++++++++++- .../document-version-dropdown.component.ts | 54 +++++++++++++++++- 7 files changed, 228 insertions(+), 9 deletions(-) create mode 100644 src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.html create mode 100644 src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.spec.ts create mode 100644 src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.ts diff --git a/docs/usage.md b/docs/usage.md index 70aaf8b0a..279ed7cf7 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -100,6 +100,7 @@ Think of versions as **file history** for a document. - In document detail, selecting a version switches the preview, file metadata and content (and download etc buttons) to that version. - Deleting a non-root version keeps metadata and falls back to the latest remaining version. - From the document list, select two or more documents and choose **Merge as versions** to combine them under one entry. Select the root document whose metadata and permissions should be retained; the other selected documents become file versions. The root may already have versions, but documents being added as versions must not have version histories of their own. +- From a document's **Versions** menu, choose **Existing** to search for another document and add it as a version of the current document. ### Management Lists diff --git a/src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.html b/src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.html new file mode 100644 index 000000000..c92993c93 --- /dev/null +++ b/src-ui/src/app/components/document-detail/document-version-dropdown/add-existing-document-version-dialog/add-existing-document-version-dialog.component.html @@ -0,0 +1,18 @@ +