Merge pull request #3329 from paperless-ngx/feature-full-dynamic-counts

Enhancement: dynamic counts include all pages, hide for "Any"
This commit is contained in:
shamoon authored and GitHub committed 2023-05-10 11:15:47 -07:00
commit b802f3a71f
9 files changed
+93 -5

No files matched your search

@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core'
import { ParamMap, Router } from '@angular/router'
import { Observable } from 'rxjs'
import { Observable, first } from 'rxjs'
import {
filterRulesDiffer,
cloneFilterRules,
@@ -230,7 +230,8 @@ export class DocumentListViewService {
activeListViewState.documents = result.results
this.documentService
.getSelectionData(result.results.map((d) => d.id))
.getSelectionData(result.all)
.pipe(first())
.subscribe({
next: (selectionData) => {
this.selectionData = selectionData