diff --git a/booklore-ui/src/app/book/components/book-browser/book-filter/book-filter.component.html b/booklore-ui/src/app/book/components/book-browser/book-filter/book-filter.component.html index d51154ba5..031337fdf 100644 --- a/booklore-ui/src/app/book/components/book-browser/book-filter/book-filter.component.html +++ b/booklore-ui/src/app/book/components/book-browser/book-filter/book-filter.component.html @@ -1,6 +1,5 @@ @if (showFilter) { -
+
Filter Mode @@ -14,39 +13,43 @@ styleClass="h-8">
- - @for (filterType of filterTypes; track filterType; let i = $index) { - - - - {{ filterLabels[filterType] || (filterType | titlecase) }} - @if (activeFilters[filterType]?.length) { - - ({{ activeFilters[filterType].length }}) +
+ + @for (filterType of filterTypes; track filterType; let i = $index) { + + + + {{ filterLabels[filterType] || (filterType | titlecase) }} + @if (activeFilters[filterType]?.length) { + + ({{ activeFilters[filterType].length }}) + + } - } - - + - - @if (filterStreams[filterType] | async; as filters) { -
- @for (filter of filters; track filter) { -
+ @if (filterStreams[filterType] | async; as filters) { +
+ @for (filter of filters; track filter) { +
- - {{ filter.value.name || filter.value }} -
- } -
- } - - - } - + (click)="handleFilterClick(filterType, filter.value?.id || filter.value)"> + + {{ filter.value.name || filter.value }} +
+ } +
+ } +
+
+ } +
+
+
}