From 37c1707ca1b99e8cddb934ddde102214a685313b Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 29 May 2024 05:23:35 -0400 Subject: [PATCH] [8.14] [ResponseOps][Connectors] Fix bug with deprecated icon in the connectors table (#184342) (#184392) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Backport This will backport the following commits from `main` to `8.14`: - [[ResponseOps][Connectors] Fix bug with deprecated icon in the connectors table (#184342)](https://github.com/elastic/kibana/pull/184342) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Christos Nasikas --- .../components/actions_connectors_list.tsx | 95 ++++++++++--------- 1 file changed, 48 insertions(+), 47 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx index bbe68c71b9165..5f583790d3b8b 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/actions_connectors_list/components/actions_connectors_list.tsx @@ -5,7 +5,6 @@ * 2.0. */ -import { ClassNames } from '@emotion/react'; import React, { useState, useEffect } from 'react'; import { EuiInMemoryTable, @@ -25,10 +24,9 @@ import { } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { omit } from 'lodash'; -import { FormattedMessage } from '@kbn/i18n-react'; -import { withTheme, EuiTheme } from '@kbn/kibana-react-plugin/common'; -import { getConnectorCompatibility } from '@kbn/actions-plugin/common'; import { useHistory, useLocation, useParams } from 'react-router-dom'; +import { getConnectorCompatibility } from '@kbn/actions-plugin/common'; +import { FormattedMessage } from '@kbn/i18n-react'; import { loadAllActions, loadActionTypes, deleteActions } from '../../../lib/action_connector_api'; import { hasDeleteActionsCapability, @@ -63,29 +61,21 @@ interface EditConnectorProps { isFix?: boolean; } -const ConnectorIconTipWithSpacing = withTheme(({ theme }: { theme: EuiTheme }) => { +const ConnectorIconTipWithSpacing: React.FC = () => { return ( - - {({ css }) => ( - - )} - + ); -}); +}; const ActionsConnectorsList: React.FunctionComponent = () => { const { @@ -246,30 +236,41 @@ const ActionsConnectorsList: React.FunctionComponent = () => { const name = getConnectorName(value, item); const link = ( - <> - editItem(item, EditConnectorTabs.Configuration)} - key={item.id} - disabled={actionTypesIndex ? !actionTypesIndex[item.actionTypeId]?.enabled : true} - > - {name} - + + + editItem(item, EditConnectorTabs.Configuration)} + key={item.id} + disabled={actionTypesIndex ? !actionTypesIndex[item.actionTypeId]?.enabled : true} + > + {name} + + {item.isMissingSecrets ? ( - + + + ) : null} - {showDeprecatedTooltip && } - + {showDeprecatedTooltip && ( + + + + )} + ); return checkEnabledResult.isEnabled ? (