diff --git a/ui/api/kafka/schema.ts b/ui/api/kafka/schema.ts index 95c09b7f2..c0c0bbe42 100644 --- a/ui/api/kafka/schema.ts +++ b/ui/api/kafka/schema.ts @@ -44,6 +44,7 @@ const ClusterDetailSchema = z.object({ meta: z .object({ reconciliationPaused: z.boolean().optional(), + managed: z.boolean(), }) .optional(), attributes: z.object({ diff --git a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/ConnectButton.tsx b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/ConnectButton.tsx index 35a7eb44f..4c2c48923 100644 --- a/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/ConnectButton.tsx +++ b/ui/app/[locale]/(authorized)/kafka/[kafkaId]/@header/overview/ConnectButton.tsx @@ -8,7 +8,13 @@ import { Button, Flex, FlexItem } from "@/libs/patternfly/react-core"; import { useTranslations } from "next-intl"; import { useState } from "react"; -export function ConnectButton({ clusterId }: { clusterId: string }) { +export function ConnectButton({ + clusterId, + managed, +}: { + clusterId: string; + managed: boolean; +}) { const t = useTranslations(); const open = useOpenClusterConnectionPanel(); @@ -33,20 +39,22 @@ export function ConnectButton({ clusterId }: { clusterId: string }) { return ( <> - - - + {managed && ( + + + + )}