Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

bs5: show single filterable dropdown without number

Michael Shamoonddce6e1f0a4f
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.html
index 61b192d20..bff646ce8 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
@@ -5,8 +5,11 @@
</svg>
<div class="d-none d-sm-inline">&nbsp;{{title}}</div>
<ng-container *ngIf="!editing && selectionModel.selectionSize() > 0">
- <div class="position-absolute top-0 start-100 translate-middle badge bg-secondary border border-light text-light rounded-pill">
- {{selectionModel.selectionSize()}}
+ <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>
+ </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>
</div>
</ng-container>
</button>