Skip to content

Commit fd07550

Browse files
committed
Disable the API config dropdown in sync with the chat textarea
1 parent 11612ca commit fd07550

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,17 +679,18 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
679679
>
680680
<select
681681
value={currentApiConfigName}
682+
disabled={textAreaDisabled}
682683
onChange={(e) => vscode.postMessage({
683684
type: "loadApiConfiguration",
684685
text: e.target.value
685686
})}
686687
style={{
687688
fontSize: "11px",
688-
cursor: "pointer",
689+
cursor: textAreaDisabled ? "not-allowed" : "pointer",
689690
backgroundColor: "transparent",
690691
border: "none",
691692
color: "var(--vscode-input-foreground)",
692-
opacity: 0.6,
693+
opacity: textAreaDisabled ? 0.5 : 0.6,
693694
outline: "none",
694695
paddingLeft: 14,
695696
WebkitAppearance: "none",

0 commit comments

Comments
 (0)