Timothy J. Baek 8 months ago
parent
commit
a529343b2b
1 changed files with 3 additions and 1 deletions
  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 Switch from '$lib/components/common/Switch.svelte';
 	import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte';
+	import { goto } from '$app/navigation';
 
 	const i18n = getContext('i18n');
 	const dispatch = createEventDispatcher();
@@ -524,8 +525,9 @@
 				<div class="flex items-center mx-2 my-2">
 					<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"
-						on:click={() => {
+						on:click={async () => {
 							temporaryChatEnabled.set(!$temporaryChatEnabled);
+							await goto('/');
 							show = false;
 						}}
 					>