diff --git a/docs/api.md b/docs/api.md index c38018f71..5bdb18f3f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -412,11 +412,14 @@ The following methods are supported: - `"merge": true or false` (defaults to false) - The `merge` flag determines if the supplied permissions will overwrite all existing permissions (including removing them) or be merged with existing permissions. -- `merge` +- `merge` and `merge_and_delete_originals` - No additional `parameters` required. - The ordering of the merged document is determined by the list of IDs. - Optional `parameters`: - `"metadata_document_id": DOC_ID` apply metadata (tags, correspondent, etc.) from this document to the merged document. + - As the name implies, `merge_and_delete_originals` deletes the original + documents after merging. This requires the calling user being the owner of + all documents that are merged. - `split` - Requires `parameters`: - `"pages": [..]` The list should be a list of pages and/or a ranges, separated by commas e.g. `"[1,2-3,4,5-7]"` diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 2cdb7a78a..0c17f42ec 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -2970,11 +2970,18 @@ 24 + + Delete original documents after merge + + src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html + 32,34 + + Note that only PDFs will be included. src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html - 30 + 36 @@ -6417,7 +6424,7 @@ Merged document will be queued for consumption. src/app/components/document-list/bulk-editor/bulk-editor.component.ts - 819 + 824 diff --git a/src-ui/src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html b/src-ui/src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html index 0da291c94..7dd6bccc9 100644 --- a/src-ui/src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html +++ b/src-ui/src/app/components/common/confirm-dialog/merge-confirm-dialog/merge-confirm-dialog.component.html @@ -27,6 +27,12 @@ } +
+ + +

Note that only PDFs will be included.