We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3a1ad4 + 4f6c309 commit 4a2ba7cCopy full SHA for 4a2ba7c
client/src/components/Sidebar.tsx
@@ -431,7 +431,13 @@ const Sidebar = ({
431
<div className="space-y-2">
432
{connectionStatus === "connected" && (
433
<div className="grid grid-cols-2 gap-4">
434
- <Button data-testid="connect-button" onClick={onConnect}>
+ <Button
435
+ data-testid="connect-button"
436
+ onClick={() => {
437
+ onDisconnect();
438
+ onConnect();
439
+ }}
440
+ >
441
<RotateCcw className="w-4 h-4 mr-2" />
442
{transportType === "stdio" ? "Restart" : "Reconnect"}
443
</Button>
0 commit comments