Commit b2999ad5 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent 49677e9c
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
let filteredChatList = []; let filteredChatList = [];
// Pagination variables // Pagination variables
let chatListLoading = false; let chatListLoading = true;
let allChatsLoaded = false; let allChatsLoaded = false;
$: filteredChatList = $chats.filter((chat) => { $: filteredChatList = $chats.filter((chat) => {
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned')); await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
await chats.set(await getChatList(localStorage.token, $currentChatPage)); await chats.set(await getChatList(localStorage.token, $currentChatPage));
chatListLoading = false;
let touchstart; let touchstart;
let touchend; let touchend;
......
...@@ -43,7 +43,7 @@ export const showChangelog = writable(false); ...@@ -43,7 +43,7 @@ export const showChangelog = writable(false);
export const showCallOverlay = writable(false); export const showCallOverlay = writable(false);
export const scrollPaginationEnabled = writable(true); export const scrollPaginationEnabled = writable(true);
export const currentChatPage = writable(0); export const currentChatPage = writable(1);
export type Model = OpenAIModel | OllamaModel; export type Model = OpenAIModel | OllamaModel;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment