fix(mcp): add missing OpenCode checkbox in MCP add/edit form (#1026)

Fixes https://github.com/farion1231/cc-switch/issues/1020
This commit is contained in:
Dex Miller
2026-02-14 15:29:54 +08:00
committed by GitHub
parent 6098fa7536
commit 9c34d04def

View File

@@ -561,6 +561,22 @@ const McpFormModal: React.FC<McpFormModalProps> = ({
{t("mcp.unifiedPanel.apps.gemini")}
</label>
</div>
<div className="flex items-center gap-2">
<Checkbox
id="enable-opencode"
checked={enabledApps.opencode}
onCheckedChange={(checked: boolean) =>
setEnabledApps({ ...enabledApps, opencode: checked })
}
/>
<label
htmlFor="enable-opencode"
className="text-sm text-foreground cursor-pointer select-none"
>
{t("mcp.unifiedPanel.apps.opencode")}
</label>
</div>
</div>
</div>