Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/produce message page #940

Merged
merged 8 commits into from
Nov 28, 2023
Merged
5 changes: 4 additions & 1 deletion frontend/src/components/pages/topics/Tab.Messages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import { isServerless } from '../../../../config';
import { Link as ReactRouterLink } from 'react-router-dom';
import { PublishMessagePayloadOptions, PublishMessageRequest } from '../../../../protogen/redpanda/api/console/v1alpha1/publish_messages_pb';
import { CompressionType, KafkaRecordHeader, PayloadEncoding } from '../../../../protogen/redpanda/api/console/v1alpha1/common_pb';
import { appGlobal } from '../../../../state/appGlobal';
import { WarningIcon } from '@chakra-ui/icons';

interface TopicMessageViewProps {
Expand Down Expand Up @@ -311,7 +312,9 @@ export class TopicMessageView extends Component<TopicMessageViewProps> {
</MenuButton>
<MenuList>
<MenuItem
onClick={() => this.showPublishRecordsModal({ topicName: this.props.topic.topicName })}
onClick={() => {
appGlobal.history.push(`/topics/${encodeURIComponent(topic.topicName)}/publish`);
}}
>
Publish Message
</MenuItem>
Expand Down
Loading
Loading