Skip to content

Commit

Permalink
Popover info added
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLuisGJ committed Feb 14, 2025
1 parent 15f1503 commit b91b871
Showing 1 changed file with 41 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,28 +128,50 @@ export const ConnectorDescriptionPopover: React.FC<ConnectorDescriptionPopoverPr
hasBorder={false}
hasShadow={false}
>
{((isNative && !isAgentlessEnabled) || showIsOnlySelfManaged) && (
{((isNative && !isAgentlessEnabled) || showIsOnlySelfManaged) &&
!isElasticManagedDiscontinued && (
<>
<EuiFlexGroup>
<EuiFlexItem>
<EuiCallOut
title={
showIsOnlySelfManaged
? i18n.translate(
'xpack.enterpriseSearch.createConnector.connectorDescriptionBadge.isOnlySelfManagedAvailableTitle',
{
defaultMessage:
'This connector is not available as an Elastic-managed Connector',
}
)
: i18n.translate(
'xpack.enterpriseSearch.createConnector.connectorDescriptionBadge.isRunningLocallyTitle',
{
defaultMessage:
'Elastic managed connectors are only available in Elastic Cloud',
}
)
}
size="s"
iconType="warning"
color="warning"
/>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer size="m" />
</>
)}
{isElasticManagedDiscontinued && (
<>
<EuiFlexGroup>
<EuiFlexItem>
<EuiCallOut
title={
showIsOnlySelfManaged
? i18n.translate(
'xpack.enterpriseSearch.createConnector.connectorDescriptionBadge.isOnlySelfManagedAvailableTitle',
{
defaultMessage:
'This connector is not available as an Elastic-managed Connector',
}
)
: i18n.translate(
'xpack.enterpriseSearch.createConnector.connectorDescriptionBadge.isRunningLocallyTitle',
{
defaultMessage:
'Elastic managed connectors are only available in Elastic Cloud',
}
)
}
title={i18n.translate(
'xpack.enterpriseSearch.createConnector.connectorDescriptionBadge.elasticManagedDiscontinuedTitle',
{
defaultMessage:
'Elastic managed connector are no longer supported',
}
)}
size="s"
iconType="warning"
color="warning"
Expand Down Expand Up @@ -191,7 +213,7 @@ export const ConnectorDescriptionPopover: React.FC<ConnectorDescriptionPopoverPr
})}
</EuiFlexGroup>
)}
{isNative && !isAgentlessEnabled && (
{isNative && !isAgentlessEnabled && !isElasticManagedDiscontinued && (
<>
<EuiSpacer size="m" />
<EuiFlexGroup direction="column" justifyContent="center">
Expand Down

0 comments on commit b91b871

Please sign in to comment.