A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Include excluded items in dropdown count
Michael Shamoon8920a32c7531
diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.htmlindex babf25588..b79862bf1 100644--- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html+++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html@@ -6,7 +6,7 @@<div class="d-none d-sm-inline"> {{title}}</div><ng-container *ngIf="!editing && selectionModel.selectionSize() > 0"><div *ngIf="multiple" class="position-absolute top-0 start-100 translate-middle badge bg-secondary border border-light text-light rounded-pill">- {{selectionModel.selectionSize()}}<span class="visually-hidden">selected</span>+ {{selectionModel.totalCount}}<span class="visually-hidden">selected</span></div><div *ngIf="!multiple" class="position-absolute top-0 start-100 p-2 translate-middle badge bg-secondary border border-light rounded-circle"><span class="visually-hidden">selected</span>diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.tsindex c3b4c890b..27b04d08b 100644--- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts+++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.ts@@ -137,6 +137,10 @@ export class FilterableDropdownSelectionModel {return this.getSelectedItems().length}+ get totalCount() {+ return this.getSelectedItems().length + this.getExcludedItems().length+ }+clear(fireEvent = true) {this.temporarySelectionStates.clear()this.temporaryLogicalOperator = this._logicalOperator = 'and'