Skip to content

Commit

Permalink
fix(entities-routes): placeholder should reflect actual behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Nov 6, 2024
1 parent e112b8d commit 7daada3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ const filterConfig = computed<InstanceType<typeof EntityFilter>['$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
}
Expand Down
1 change: 1 addition & 0 deletions packages/entities/entities-routes/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7daada3

Please sign in to comment.