Explorar o código

disable produce message button if cluster is readOnly (#2077)

Robert Azizbekyan %!s(int64=3) %!d(string=hai) anos
pai
achega
eb9aeef2d1

+ 1 - 0
kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx

@@ -113,6 +113,7 @@ const Details: React.FC<Props> = ({
                   buttonSize="M"
                   buttonType="primary"
                   to={`../${clusterTopicSendMessageRelativePath}`}
+                  disabled={isReadOnly}
                 >
                   Produce Message
                 </Button>