Skip to content

Commit

Permalink
fix(entities-plugins): placeholder should reflect actual behavior (#1762
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Justineo authored Nov 5, 2024
1 parent 19ec699 commit eb0dac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/entities/entities-plugins/src/components/PluginList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@
</template>

<template #ordering="{ rowValue }">
<KBadge
:appearance="isEmpty(rowValue) ? 'info' : 'warning'"
>
<KBadge :appearance="isEmpty(rowValue) ? 'info' : 'warning'">
{{
isEmpty(rowValue)
? t('plugins.list.table_headers.ordering_badge.static')
Expand Down Expand Up @@ -411,7 +409,8 @@ const filterConfig = computed<InstanceType<typeof EntityFilter>['$props']['confi
name: fields.name,
id: { label: t('plugins.list.table_headers.id'), sortable: true },
},
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 Expand Up @@ -545,10 +544,9 @@ const confirmSwitchEnablement = async () => {
return
}
let url = `${props.config.apiBaseUrl}${
endpoints.item[props.config.app]?.[props.config?.entityType ? 'forEntity' : 'all']
.replace(/{entityType}/gi, props.config?.entityType || '')
.replace(/{entityId}/gi, props.config?.entityId || '')
let url = `${props.config.apiBaseUrl}${endpoints.item[props.config.app]?.[props.config?.entityType ? 'forEntity' : 'all']
.replace(/{entityType}/gi, props.config?.entityType || '')
.replace(/{entityId}/gi, props.config?.entityId || '')
}`
.replace(/{id}/gi, switchEnablementTarget.value.id || '')
Expand Down
1 change: 1 addition & 0 deletions packages/entities/entities-plugins/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"search": {
"placeholder": {
"konnect": "Filter by name",
"exact": "Filter by exact instance name or ID",
"kongManager": "Filter by exact instance name or ID",
"select": "Filter plugins"
},
Expand Down

0 comments on commit eb0dac6

Please sign in to comment.