Implement cancel

This commit is contained in:
Gregory Schier
2024-02-02 00:18:37 -08:00
parent b526ea506b
commit 4e781b752d
7 changed files with 121 additions and 133 deletions

View File

@@ -193,7 +193,7 @@ export function GrpcConnectionLayout({ style }: Props) {
<IconButton
className="border border-highlight"
size="sm"
title="ofo"
title="to-do"
hotkeyAction="request.send"
onClick={handleConnect}
icon={
@@ -206,6 +206,15 @@ export function GrpcConnectionLayout({ style }: Props) {
: 'sendHorizontal'
}
/>
<IconButton
className="border border-highlight"
size="sm"
title="to-do"
onClick={async () => {
await grpc.cancel.mutateAsync();
}}
icon="trash"
/>
</HStack>
</div>
<GrpcEditor