Skip to content

Commit 40d9c39

Browse files
authored
Webui: Disable attachment button and model selector button when prompt textbox is disabled. (#17925)
* Pass disabled state to the file attachments button and the model selector button. * Update index.html.gz * Fix model info card in non-router mode. * Update index.html.gz
1 parent d6a1e18 commit 40d9c39

File tree

4 files changed

+201
-186
lines changed

4 files changed

+201
-186
lines changed

tools/server/public/index.html.gz

108 Bytes
Binary file not shown.

tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionFileAttachments.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
<div class="flex items-center gap-1 {className}">
3737
<DropdownMenu.Root>
38-
<DropdownMenu.Trigger name="Attach files">
38+
<DropdownMenu.Trigger name="Attach files" {disabled}>
3939
<Tooltip.Root>
4040
<Tooltip.Trigger>
4141
<Button

tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
/>
174174

175175
<ModelsSelector
176+
{disabled}
176177
bind:this={selectorModelRef}
177178
currentModel={conversationModel}
178179
forceForegroundText={true}

0 commit comments

Comments
 (0)