This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-15 23:53:52 +02:00
1 parent 45fcf272ef
commit 76854d1424
10 files changed
+146 -83

No files matched your search

+3 -1
View File
@@ -43,6 +43,7 @@
const i18n = getContext('i18n');
export let initNewChat: Function;
export let readOnly: boolean = false;
export let shareEnabled: boolean = false;
export let scrollTop = 0;
export let scrollToTop: (() => void) | null = null;
@@ -122,7 +123,7 @@
"
>
{#if showModelSelector}
<ModelSelector bind:selectedModels showSetDefault={!shareEnabled} />
<ModelSelector bind:selectedModels showSetDefault={!shareEnabled && !readOnly} disabled={readOnly} />
{/if}
</div>
@@ -203,6 +204,7 @@
<Menu
{chat}
{shareEnabled}
{readOnly}
{scrollToTop}
shareHandler={() => {
showShareChatModal = !showShareChatModal;