]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix excluded items not showing in tag dropdown count
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Sun, 18 Dec 2022 03:49:00 +0000 (19:49 -0800)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Sun, 18 Dec 2022 03:49:00 +0000 (19:49 -0800)
src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html

index 9ce3c8da22535bc07c542667b7fd6709af391840..e82d173343aaa49db0f106405282b5d10caa1235 100644 (file)
@@ -4,7 +4,7 @@
       <use attr.xlink:href="assets/bootstrap-icons.svg#{{icon}}" />
     </svg>
     <div class="d-none d-sm-inline">&nbsp;{{title}}</div>
-    <ng-container *ngIf="!editing && selectionModel.selectionSize() > 0">
+    <ng-container *ngIf="!editing && selectionModel.totalCount > 0">
       <app-clearable-badge [number]="multiple ? selectionModel.totalCount : undefined" [selected]="!multiple && selectionModel.selectionSize() > 0" (cleared)="reset()"></app-clearable-badge>
     </ng-container>
   </button>