Büchersuche: Trefferanzahl anzeigen
This commit is contained in:
parent
4e4b1c4baf
commit
3fc788ef95
@ -75,7 +75,13 @@
|
|||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
<VCol cols="12" md="12">
|
<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>
|
<VRow>
|
||||||
<VCol v-for="book in filteredBooks" :key="book.id" sm="6" cols="12">
|
<VCol v-for="book in filteredBooks" :key="book.id" sm="6" cols="12">
|
||||||
<VCard>
|
<VCard>
|
||||||
@ -123,6 +129,8 @@ const selectedCheckbox = ref([]);
|
|||||||
const fieberkurveValues = ref([4, 4, 4, 4, 4]);
|
const fieberkurveValues = ref([4, 4, 4, 4, 4]);
|
||||||
const fieberkurveRowFilter = ref([]);
|
const fieberkurveRowFilter = ref([]);
|
||||||
|
|
||||||
|
const resultCount = computed(() => filteredBooks.value.length)
|
||||||
|
|
||||||
const filteredBooks = computed(() => {
|
const filteredBooks = computed(() => {
|
||||||
return books.filter((book) => {
|
return books.filter((book) => {
|
||||||
const matchesGenres =
|
const matchesGenres =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user