A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
always show count badges
jonaswinkler3dd4583ea84c
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 58c831456..5f9440336 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@@ -21,7 +21,7 @@</div><div *ngIf="toggleableItems" class="items"><ng-container *ngFor="let toggleableItem of toggleableItems | filter: filterText">- <app-toggleable-dropdown-button [toggleableItem]="toggleableItem" [showCounts]="showCounts" (toggle)="toggleItem($event)"></app-toggleable-dropdown-button>+ <app-toggleable-dropdown-button [toggleableItem]="toggleableItem" (toggle)="toggleItem($event)"></app-toggleable-dropdown-button></ng-container></div><button *ngIf="type == types.Editing" class="list-group-item list-group-item-action bg-light" (click)="dropdown.close()" [disabled]="!hasBeenToggled || (toggleableItems | filter: filterText).length == 0">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 bffbb86e1..45a037f65 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@@ -76,17 +76,6 @@ export class FilterableDropdownComponent {@Output()editingComplete = new EventEmitter()- _showCounts: boolean = true-- @Input()- set showCounts(show: boolean) {- this._showCounts = show- }-- get showCounts(): boolean {- return this._showCounts && (this.type == FilterableDropdownType.Editing || (this.type == FilterableDropdownType.Filtering && this.itemsSelected.length == 0))- }-hasBeenToggled:boolean = falseconstructor(private filterPipe: FilterPipe) { }diff --git a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.htmlindex 32f9c58ad..daa72b41d 100644--- a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html+++ b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html@@ -8,5 +8,5 @@<app-tag *ngIf="isTag; else displayName" [tag]="toggleableItem?.item" [clickable]="true" linkTitle="Filter by tag"></app-tag><ng-template #displayName><small>{{toggleableItem?.item.name}}</small></ng-template></div>- <div *ngIf="showCounts" class="badge badge-light rounded-pill ml-auto mr-1">{{toggleableItem?.count}}</div>+ <div class="badge badge-light rounded-pill ml-auto mr-1">{{toggleableItem?.count}}</div></button>diff --git a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.ts b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.tsindex adfea556a..400029615 100644--- a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.ts+++ b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.ts@@ -23,9 +23,6 @@ export class ToggleableDropdownButtonComponent {@Input()toggleableItem: ToggleableItem- @Input()- showCounts: boolean = true-@Output()toggle = new EventEmitter()diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.htmlindex aa85fdb12..fd619717f 100644--- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html+++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html@@ -32,21 +32,18 @@<app-filterable-dropdown class="mr-2 mr-md-3" title="Tags" icon="tag-fill"[toggleableItems]="tagsToggleableItems"[type]="dropdownTypes.Editing"- [showCounts]="!selectionSpansPages"(open)="tagsDropdownOpen()"(editingComplete)="setTags($event)"></app-filterable-dropdown><app-filterable-dropdown class="mr-2 mr-md-3" title="Correspondent" icon="person-fill" singular="true"[toggleableItems]="correspondentsToggleableItems"[type]="dropdownTypes.Editing"- [showCounts]="!selectionSpansPages"(open)="correspondentsDropdownOpen()"(editingComplete)="setCorrespondents($event)"></app-filterable-dropdown><app-filterable-dropdown class="mr-2 mr-md-3" title="Document Type" icon="file-earmark-fill" singular="true"[toggleableItems]="documentTypesToggleableItems"[type]="dropdownTypes.Editing"- [showCounts]="!selectionSpansPages"(open)="documentTypesDropdownOpen()"(editingComplete)="setDocumentTypes($event)"></app-filterable-dropdown>