From 277bdfaf07c7f22b5886b4f30f5bf15ba34cb39a Mon Sep 17 00:00:00 2001 From: Cristina Amico Date: Thu, 23 Jan 2025 18:09:49 +0100 Subject: [PATCH] [Fleet] Fix connector links not visible in agentless flyout (#208068) Follow up of https://github.com/elastic/kibana/pull/203824 ## Summary This is a small bugfix for connectors not visible in agentless flyout. ## Testing - Follow the steps here https://github.com/elastic/kibana/pull/203824 - Install elastic-connectors integration `app/fleet/integrations/elastic_connectors-1.0.0/add-integration` and enroll an agent to it - The enabled connectors should be visible in the flyout Screenshot 2025-01-23 at 15 28 20 --- .../components/agentless_enrollment_flyout/next_steps.tsx | 2 +- .../agentless_enrollment_flyout/step_confirm_data.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx index e068dc5311ea7..93ca4b03af458 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/next_steps.tsx @@ -132,7 +132,7 @@ export const NextSteps = ({ return ( <> - {nextStepsCards.length > 0 && ( + {(nextStepsCards.length > 0 || connectorCards.length > 0) && ( {nextStepsCards} {connectorCards} diff --git a/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx index 0775716eefd1b..f746488553b28 100644 --- a/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/components/agentless_enrollment_flyout/step_confirm_data.tsx @@ -84,7 +84,7 @@ export const AgentlessStepConfirmData = ({