Skip to content

Commit e29ce27

Browse files
authored
Merge pull request #838 from hannesrudolph/patch-4
Move MCP Restart Button
2 parents 324c5c8 + 4fe2eef commit e29ce27

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

webview-ui/src/components/mcp/McpView.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ const ServerRow = ({ server, alwaysAllowMcp }: { server: McpServer; alwaysAllowM
202202
<div
203203
style={{ display: "flex", alignItems: "center", marginRight: "8px" }}
204204
onClick={(e) => e.stopPropagation()}>
205+
<VSCodeButton
206+
appearance="icon"
207+
onClick={handleRestart}
208+
disabled={server.status === "connecting"}
209+
style={{ marginRight: "8px" }}>
210+
<span className="codicon codicon-refresh" style={{ fontSize: "14px" }}></span>
211+
</VSCodeButton>
205212
<div
206213
role="switch"
207214
aria-checked={!server.disabled}
@@ -383,14 +390,6 @@ const ServerRow = ({ server, alwaysAllowMcp }: { server: McpServer; alwaysAllowM
383390
Maximum time to wait for server responses
384391
</span>
385392
</div>
386-
387-
<VSCodeButton
388-
appearance="secondary"
389-
onClick={handleRestart}
390-
disabled={server.status === "connecting"}
391-
style={{ width: "calc(100% - 14px)", margin: "0 7px 3px 7px" }}>
392-
{server.status === "connecting" ? "Restarting..." : "Restart Server"}
393-
</VSCodeButton>
394393
</div>
395394
)
396395
)}

0 commit comments

Comments
 (0)