mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-22 21:50:42 -05:00
fix: Temporary in the / menu does nothing on a new chat (#34609)
On a new chat, picking Temporary from the / menu did nothing, so the next message was saved and showed up in the chat list. Picking it now turns the chat temporary, the same as the Temporary Chat button in the header. Fixes #34607
This commit is contained in:
1 parent
10be890bce
commit
dcde707f0f
2 files changed
+3
No files matched your search
@@ -6488,6 +6488,7 @@
|
||||
{selectedTerminalId}
|
||||
{terminalSkills}
|
||||
chatId={$chatId}
|
||||
{onTemporaryChange}
|
||||
bind:terminalContext
|
||||
callActive={!!(bridge?.connected || bridge?.connecting)}
|
||||
callEnabled={!isShared}
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
export let onUpload: Function = (e) => {};
|
||||
export let onUpdate: (data?: { file?: any }) => void = () => {};
|
||||
export let onSelect = (e) => {};
|
||||
export let onTemporaryChange: ((value: boolean) => void) | null = null;
|
||||
export let onChange = (e) => {};
|
||||
export let onWebSearchToggle: Function = () => {};
|
||||
export let messageQueue: { id: string; prompt: string; files: any[] }[] = [];
|
||||
@@ -136,6 +137,7 @@
|
||||
{selectedTerminalId}
|
||||
{terminalSkills}
|
||||
{chatId}
|
||||
{onTemporaryChange}
|
||||
bind:terminalContext
|
||||
{callActive}
|
||||
{callEnabled}
|
||||
|
||||
Reference in new issue
Block a user