mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-29 08:13:19 +00:00
Reprot more accurate notification for tasks with follow-ups
This commit is contained in:
8 files changed
+84
-14
No files matched your search
@@ -23,3 +23,16 @@ export function getDocumentOperationLabel(operation?: string): string | null {
|
||||
const label = operation ? OPERATION_LABELS[operation] : null
|
||||
return label ?? null
|
||||
}
|
||||
|
||||
// These operations queue processing in separate tasks
|
||||
export function documentOperationHasFollowUpTasks(operation?: string): boolean {
|
||||
return [
|
||||
'reprocess',
|
||||
'rotate',
|
||||
'merge',
|
||||
'split',
|
||||
'delete_pages',
|
||||
'edit_pdf',
|
||||
'remove_password',
|
||||
].includes(operation ?? '')
|
||||
}
|
||||
Reference in new issue
Block a user