Skip to content

Commit

Permalink
[Search][Connectors] Elastic managed as default and some typos (elast…
Browse files Browse the repository at this point in the history
…ic#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>
  • Loading branch information
JoseLuisGJ and elasticmachine authored Oct 31, 2024
1 parent 84ecae6 commit 7dea07f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 7dea07f

Please sign in to comment.