mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 07:15:07 +01:00
Add "all" property to results
This commit is contained in:
parent
c59420581c
commit
f124e2a889
4 changed files with 80 additions and 13 deletions
|
|
@ -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
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue