diff --git a/src/lib/components/chat/Settings/Chats.svelte b/src/lib/components/chat/Settings/Chats.svelte index 2eaea240f..7a252458f 100644 --- a/src/lib/components/chat/Settings/Chats.svelte +++ b/src/lib/components/chat/Settings/Chats.svelte @@ -16,6 +16,7 @@ import { onMount, getContext } from 'svelte'; import { goto } from '$app/navigation'; import { toast } from 'svelte-sonner'; + import ArchivedChatsModal from '$lib/components/layout/Sidebar/ArchivedChatsModal.svelte'; const i18n = getContext('i18n'); @@ -26,6 +27,7 @@ let showArchiveConfirm = false; let showDeleteConfirm = false; + let showArchivedChatsModal = false; let chatImportInputElement: HTMLInputElement; @@ -95,8 +97,16 @@ await chats.set(await getChatList(localStorage.token, $currentChatPage)); scrollPaginationEnabled.set(true); }; + + const handleArchivedChatsChange = async () => { + currentChatPage.set(1); + await chats.set(await getChatList(localStorage.token, $currentChatPage)); + scrollPaginationEnabled.set(true); + }; + +
@@ -157,6 +167,32 @@
+ + {#if showArchiveConfirm}