Enhancement (QoL): support deselecting single items from "select all" (#14117)

This commit is contained in:
shamoon authored and GitHub committed 2026-09-18 01:28:55 +00:00
1 parent d80997a070
commit f4ff87e69b
9 files changed
+350 -33

No files matched your search

@@ -72,6 +72,7 @@ export interface DocumentSelectionQuery {
documents?: number[]
all?: boolean
filters?: { [key: string]: any }
excluded_documents?: number[]
}
@Injectable({
@@ -407,10 +408,12 @@ export class DocumentService extends AbstractPaperlessService<Document> {
})
}
getSelectionData(ids: number[]): Observable<SelectionData> {
getSelectionData(
selection: DocumentSelectionQuery
): Observable<SelectionData> {
return this.http.post<SelectionData>(
this.getResourceUrl(null, 'selection_data'),
{ documents: ids }
selection
)
}