Disable the API config dropdown in sync with the chat textarea

This commit is contained in:
Matt Rubens
2025-01-08 00:32:46 -05:00
parent 11612caac0
commit fd075505e6

View File

@@ -679,17 +679,18 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
> >
<select <select
value={currentApiConfigName} value={currentApiConfigName}
disabled={textAreaDisabled}
onChange={(e) => vscode.postMessage({ onChange={(e) => vscode.postMessage({
type: "loadApiConfiguration", type: "loadApiConfiguration",
text: e.target.value text: e.target.value
})} })}
style={{ style={{
fontSize: "11px", fontSize: "11px",
cursor: "pointer", cursor: textAreaDisabled ? "not-allowed" : "pointer",
backgroundColor: "transparent", backgroundColor: "transparent",
border: "none", border: "none",
color: "var(--vscode-input-foreground)", color: "var(--vscode-input-foreground)",
opacity: 0.6, opacity: textAreaDisabled ? 0.5 : 0.6,
outline: "none", outline: "none",
paddingLeft: 14, paddingLeft: 14,
WebkitAppearance: "none", WebkitAppearance: "none",