Timothy J. Baek 9 月之前
父節點
當前提交
a529343b2b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/lib/components/chat/ModelSelector/Selector.svelte

+ 3 - 1
src/lib/components/chat/ModelSelector/Selector.svelte

@@ -20,6 +20,7 @@
 	import Tooltip from '$lib/components/common/Tooltip.svelte';
 	import Tooltip from '$lib/components/common/Tooltip.svelte';
 	import Switch from '$lib/components/common/Switch.svelte';
 	import Switch from '$lib/components/common/Switch.svelte';
 	import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte';
 	import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte';
+	import { goto } from '$app/navigation';
 
 
 	const i18n = getContext('i18n');
 	const i18n = getContext('i18n');
 	const dispatch = createEventDispatcher();
 	const dispatch = createEventDispatcher();
@@ -524,8 +525,9 @@
 				<div class="flex items-center mx-2 my-2">
 				<div class="flex items-center mx-2 my-2">
 					<button
 					<button
 						class="flex justify-between w-full font-medium line-clamp-1 select-none items-center rounded-button py-2 px-3 text-sm text-gray-700 dark:text-gray-100 outline-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
 						class="flex justify-between w-full font-medium line-clamp-1 select-none items-center rounded-button py-2 px-3 text-sm text-gray-700 dark:text-gray-100 outline-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
-						on:click={() => {
+						on:click={async () => {
 							temporaryChatEnabled.set(!$temporaryChatEnabled);
 							temporaryChatEnabled.set(!$temporaryChatEnabled);
+							await goto('/');
 							show = false;
 							show = false;
 						}}
 						}}
 					>
 					>