Büchersuche: Trefferanzahl anzeigen
This commit is contained in:
parent
4e4b1c4baf
commit
3fc788ef95
@ -75,7 +75,13 @@
|
||||
</VCol>
|
||||
|
||||
<VCol cols="12" md="12">
|
||||
<VCard class="mb-6" title="Gefundene Bücher:">
|
||||
<VCard class="mb-6">
|
||||
<!-- Trefferanzahl -->
|
||||
<VCardTitle class="text-h5 px-6 pt-4 pb-2">
|
||||
{{ resultCount }} {{ resultCount === 1 ? 'Buch' : 'Bücher' }} gefunden
|
||||
</VCardTitle>
|
||||
<VDivider class="my-2" />
|
||||
|
||||
<VRow>
|
||||
<VCol v-for="book in filteredBooks" :key="book.id" sm="6" cols="12">
|
||||
<VCard>
|
||||
@ -123,6 +129,8 @@ const selectedCheckbox = ref([]);
|
||||
const fieberkurveValues = ref([4, 4, 4, 4, 4]);
|
||||
const fieberkurveRowFilter = ref([]);
|
||||
|
||||
const resultCount = computed(() => filteredBooks.value.length)
|
||||
|
||||
const filteredBooks = computed(() => {
|
||||
return books.filter((book) => {
|
||||
const matchesGenres =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user