diff --git a/packages/insomnia/src/ui/components/panes/grpc-request-pane.tsx b/packages/insomnia/src/ui/components/panes/grpc-request-pane.tsx index 4475c802d54..3f76c86fcaf 100644 --- a/packages/insomnia/src/ui/components/panes/grpc-request-pane.tsx +++ b/packages/insomnia/src/ui/components/panes/grpc-request-pane.tsx @@ -232,94 +232,94 @@ export const GrpcRequestPane: FunctionComponent = ({ - + - <> - {running && canClientStream(methodType) && ( - - - - - )} - - {[ - + <> + {running && canClientStream(methodType) && ( + + + + + )} + + {[ + + patchRequest(requestId, { body: { text } })} + mode="application/json" + enableNunjucks + showPrettifyButton={true} + /> + , + ...requestMessages.sort((a, b) => a.created - b.created).map((m, index) => ( + patchRequest(requestId, { body: { text } })} + id={'grpc-request-editor-tab' + m.id} + defaultValue={m.text} mode="application/json" enableNunjucks - showPrettifyButton={true} + readOnly + autoPrettify /> - , - ...requestMessages.sort((a, b) => a.created - b.created).map((m, index) => ( - - - - )), - ]} - - - - - - - patchRequest(requestId, { metadata })} - /> - - - + + )), + ]} + + + + + + + patchRequest(requestId, { metadata })} + /> + + + - } - documentationLinks={[documentationLinks.introductionToInsomnia]} - secondaryAction="Select a body type from above to send data in the body of a request" - title="Enter a URL and send to get a response" + } + documentationLinks={[documentationLinks.introductionToInsomnia]} + secondaryAction="Select a body type from above to send data in the body of a request" + title="Enter a URL and send to get a response" />