From 779ee523f29b3f2f381a5585f8174bbf6b29d8ad Mon Sep 17 00:00:00 2001 From: djohnson Date: Sat, 13 Apr 2024 08:58:41 +0900 Subject: [PATCH] fix: input row disable should be based on any model selected --- src/components/ChatBoxInputRow.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/ChatBoxInputRow.tsx b/src/components/ChatBoxInputRow.tsx index 703e536..b584113 100644 --- a/src/components/ChatBoxInputRow.tsx +++ b/src/components/ChatBoxInputRow.tsx @@ -80,8 +80,9 @@ const ChatBoxInputRow = observer( } } - const noServer = !settingStore.isAnyServerConnected - const inputDisabled = chatStore.isGettingData || noServer || !!lightboxStore.lightboxMessage + const noModelSelected = !settingStore.selectedModelLabel + const inputDisabled = + chatStore.isGettingData || noModelSelected || !!lightboxStore.lightboxMessage useEffect(() => { if (!textareaRef.current) return @@ -101,10 +102,10 @@ const ChatBoxInputRow = observer(
chat.setMessageToEdit(undefined)} > Cancel @@ -231,7 +232,7 @@ const ChatBoxInputRow = observer( {children || (