Hide empty filters from sidebar (#1759)
This commit is contained in:
+5
-3
@@ -15,6 +15,8 @@
|
||||
<div class="filter-content">
|
||||
<p-accordion [value]="expandedPanels" [multiple]="true">
|
||||
@for (filterType of filterTypes; track trackByFilterType(i, filterType); let i = $index) {
|
||||
@if (filterStreams[filterType] | async; as filters) {
|
||||
@if (filters.length > 0) {
|
||||
<p-accordion-panel [value]="i">
|
||||
<p-accordion-header>
|
||||
<span class="filter-type-label">
|
||||
@@ -28,7 +30,6 @@
|
||||
</p-accordion-header>
|
||||
|
||||
<p-accordion-content>
|
||||
@if (filterStreams[filterType] | async; as filters) {
|
||||
<div class="filter-list">
|
||||
@for (filter of filters; track trackByFilter(j, filter); let j = $index) {
|
||||
<div
|
||||
@@ -43,14 +44,15 @@
|
||||
}
|
||||
@if (truncatedFilters[filterType]) {
|
||||
<div class="truncation-notice">
|
||||
Showing first 250 items
|
||||
Showing first 500 items
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</p-accordion-content>
|
||||
</p-accordion-panel>
|
||||
}
|
||||
}
|
||||
}
|
||||
</p-accordion>
|
||||
|
||||
<div class="footer-notice">
|
||||
|
||||
Reference in New Issue
Block a user