From 7daada3fe7277fce0a5742bb313ebe47094b612a Mon Sep 17 00:00:00 2001 From: Justineo Date: Wed, 6 Nov 2024 15:09:09 +0800 Subject: [PATCH] fix(entities-routes): placeholder should reflect actual behavior --- packages/entities/entities-routes/src/components/RouteList.vue | 3 ++- packages/entities/entities-routes/src/locales/en.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/entities/entities-routes/src/components/RouteList.vue b/packages/entities/entities-routes/src/components/RouteList.vue index 31e6006ac1..54de515ece 100644 --- a/packages/entities/entities-routes/src/components/RouteList.vue +++ b/packages/entities/entities-routes/src/components/RouteList.vue @@ -353,7 +353,8 @@ const filterConfig = computed['$props']['confi if (isExactMatch) { return { isExactMatch, - placeholder: t(`search.placeholder.${props.config.app}`), + // force exact placeholder if `props.config.isExactMatch` is true + placeholder: t(`search.placeholder.${props.config.isExactMatch ? 'exact' : props.config.app}`), } as ExactMatchFilterConfig } diff --git a/packages/entities/entities-routes/src/locales/en.json b/packages/entities/entities-routes/src/locales/en.json index 7bb9b655be..f96460fe35 100644 --- a/packages/entities/entities-routes/src/locales/en.json +++ b/packages/entities/entities-routes/src/locales/en.json @@ -12,6 +12,7 @@ "search": { "placeholder": { "konnect": "Filter by name", + "exact": "Filter by exact name or ID", "kongManager": "Filter by exact name or ID" }, "no_results": "No results found"