This commit is contained in:
Timothy Jaeryang Baek committed 2026-12-03 00:18:38 +04:00
1 parent ad202d7f4c
commit 6a9a048e12
7 files changed
+141 -9

No files matched your search

@@ -669,8 +669,8 @@
}
if (isPresetModel(model)) {
showSettings.set(false);
await goto(`/workspace/models/edit?id=${encodeURIComponent(model.id)}`);
showSettings.set(false);
return;
}
@@ -685,8 +685,8 @@
id: `${model.id}-clone`,
name: `${model.name} (Clone)`
});
showSettings.set(false);
await goto('/workspace/models/create');
showSettings.set(false);
};
const exportModelHandler = async (model) => {
@@ -379,10 +379,10 @@
class="block truncate text-base-800 hover:text-base-1000 dark:text-base-200 dark:hover:text-base-0"
href={`/c/${chat.id}`}
title={chat?.title}
on:click={(event) => {
on:click={async (event) => {
event.preventDefault();
await goto(`/c/${chat.id}`);
showSettings.set(false);
goto(`/c/${chat.id}`);
}}
>
{chat?.title}
@@ -34,6 +34,8 @@
const i18n: Writable<any> = getContext('i18n');
export let show: boolean | string | SettingsModalRequest = false;
// Called with the open tab whenever it changes, so the page address can follow it.
export let onTabChange: (tab: string) => void = () => {};
let modalShow = false;
let lastShow: boolean | string | SettingsModalRequest = false;
let tabState: Record<string, unknown> | null = null;
@@ -628,6 +630,7 @@
$: if (modalShow && selectedTab) {
scrollToSelectedTab();
onTabChange(selectedTab);
}
$: if ($config && $user) {