From eb9aeef2d1bbc8f97a71ee80830a1e37f25e67ee Mon Sep 17 00:00:00 2001 From: Robert Azizbekyan <103438454+rAzizbekyan@users.noreply.github.com> Date: Tue, 31 May 2022 19:04:33 +0400 Subject: [PATCH] disable produce message button if cluster is readOnly (#2077) --- .../src/components/Topics/Topic/Details/Details.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx b/kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx index f3d1c33d1a..69540fdc28 100644 --- a/kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx +++ b/kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx @@ -113,6 +113,7 @@ const Details: React.FC = ({ buttonSize="M" buttonType="primary" to={`../${clusterTopicSendMessageRelativePath}`} + disabled={isReadOnly} > Produce Message