From a191dab359e950a9b4cc3ea372caa606bdff1cd7 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 21 Jul 2024 11:07:54 -0500 Subject: [PATCH] Show numItems and numBooks on search cards --- client/components/cards/AuthorSearchCard.vue | 8 ++++++-- client/components/cards/GenreSearchCard.vue | 6 ++++-- client/components/cards/NarratorSearchCard.vue | 8 +++++--- client/components/cards/TagSearchCard.vue | 8 +++++--- client/components/controls/GlobalSearch.vue | 6 +++--- client/strings/en-us.json | 2 ++ 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/client/components/cards/AuthorSearchCard.vue b/client/components/cards/AuthorSearchCard.vue index 76e79543..f3693a5a 100644 --- a/client/components/cards/AuthorSearchCard.vue +++ b/client/components/cards/AuthorSearchCard.vue @@ -5,6 +5,7 @@

{{ name }}

+

{{ $getString('LabelXBooks', [numBooks]) }}

@@ -23,6 +24,9 @@ export default { computed: { name() { return this.author.name + }, + numBooks() { + return this.author.numBooks } }, methods: {}, @@ -33,9 +37,9 @@ export default { \ No newline at end of file + diff --git a/client/components/cards/GenreSearchCard.vue b/client/components/cards/GenreSearchCard.vue index 05be7614..73e8bbac 100644 --- a/client/components/cards/GenreSearchCard.vue +++ b/client/components/cards/GenreSearchCard.vue @@ -5,6 +5,7 @@

{{ genre }}

+

{{ $getString('LabelXItems', [numItems]) }}

@@ -12,7 +13,8 @@