From 567b8a79759e17b48f24dbce4afac0494d7e7e72 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Thu, 7 Mar 2024 22:35:45 +0100 Subject: [PATCH] Clarify what we filter by --- src/components/Catalogs.vue | 5 ++++- src/locales/de/texts.json | 1 + src/locales/en/texts.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Catalogs.vue b/src/components/Catalogs.vue index b520b44e3..f7992dbc7 100644 --- a/src/components/Catalogs.vue +++ b/src/components/Catalogs.vue @@ -6,7 +6,7 @@ - + {{ $t('catalogs.noMatches') }}
@@ -102,6 +102,9 @@ export default { isComplete() { return !this.hasMore && !this.showPagination; }, + filterPlaceholder() { + return this.isComplete ? this.$t('catalogs.filterByTitle') : this.$t('catalogs.filterByTitleAndMore'); + }, showPagination() { // Check whether any pagination links are available return Object.values(this.pagination).some(link => !!link); diff --git a/src/locales/de/texts.json b/src/locales/de/texts.json index fb93e42a9..1ec05efef 100644 --- a/src/locales/de/texts.json +++ b/src/locales/de/texts.json @@ -47,6 +47,7 @@ }, "catalogs": { "filterByTitle": "Kataloge anhand des Titels filtern", + "filterByTitleAndMore": "Kataloge anhand von Titel, Beschreibung und Schlüsselwörtern filtern", "loadMore": "Lade mehr...", "noMatches": "Keiner der Kataloge entspricht den Suchkriterien." }, diff --git a/src/locales/en/texts.json b/src/locales/en/texts.json index dc8c40481..22ea532ba 100644 --- a/src/locales/en/texts.json +++ b/src/locales/en/texts.json @@ -47,6 +47,7 @@ }, "catalogs": { "filterByTitle": "Filter catalogs by title", + "filterByTitleAndMore": "Filter catalogs by title, description and keywords", "loadMore": "Load more...", "noMatches": "No catalogs match the given search criteria." },