mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Add "all" property to results
This commit is contained in:
@@ -2,4 +2,6 @@ export interface Results<T> {
|
||||
count: number
|
||||
|
||||
results: T[]
|
||||
|
||||
all: number[]
|
||||
}
|
||||
|
@@ -230,21 +230,14 @@ export class DocumentListViewService {
|
||||
activeListViewState.documents = result.results
|
||||
|
||||
this.documentService
|
||||
.listAllFilteredIds(activeListViewState.filterRules)
|
||||
.getSelectionData(result.all)
|
||||
.pipe(first())
|
||||
.subscribe({
|
||||
next: (ids: number[]) => {
|
||||
this.documentService
|
||||
.getSelectionData(ids)
|
||||
.pipe(first())
|
||||
.subscribe({
|
||||
next: (selectionData) => {
|
||||
this.selectionData = selectionData
|
||||
},
|
||||
error: () => {
|
||||
this.selectionData = null
|
||||
},
|
||||
})
|
||||
next: (selectionData) => {
|
||||
this.selectionData = selectionData
|
||||
},
|
||||
error: () => {
|
||||
this.selectionData = null
|
||||
},
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user