mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Search][Connectors] Elastic managed as default and some typos (#197571)
## Summary Fixing **Elastic managed** as a default option when creating a new connector. And fixing _Self managed_ typo to become _Self-managed_ --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
84ecae6cec
commit
7dea07f90d
1 changed files with 3 additions and 5 deletions
|
@ -67,10 +67,8 @@ export const CreateConnector: React.FC = () => {
|
|||
|
||||
useEffect(() => {
|
||||
// TODO: separate this to ability and preference
|
||||
if (!selectedConnector?.isNative || !selfManagePreference) {
|
||||
if (selectedConnector && !selectedConnector.isNative && selfManagePreference === 'native') {
|
||||
setSelfManagePreference('selfManaged');
|
||||
} else {
|
||||
setSelfManagePreference('native');
|
||||
}
|
||||
}, [selectedConnector]);
|
||||
|
||||
|
@ -276,11 +274,11 @@ export const CreateConnector: React.FC = () => {
|
|||
</EuiFormRow>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiBadge color="hollow">
|
||||
{selfManagePreference
|
||||
{selfManagePreference === 'selfManaged'
|
||||
? i18n.translate(
|
||||
'xpack.enterpriseSearch.createConnector.badgeType.selfManaged',
|
||||
{
|
||||
defaultMessage: 'Self managed',
|
||||
defaultMessage: 'Self-managed',
|
||||
}
|
||||
)
|
||||
: i18n.translate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue