This commit is contained in:
Timothy Jaeryang Baek
2026-07-26 23:16:58 -04:00
parent ed663f16ec
commit b7489bbc6c
7 changed files with 91 additions and 22 deletions
@@ -4,7 +4,6 @@
const dispatch = createEventDispatcher();
import RecursiveFolder from './RecursiveFolder.svelte';
import { chatId } from '$lib/stores';
export let folderRegistry = {};
@@ -42,16 +41,6 @@
folderRegistry[e.originFolderId]?.setFolderItems();
}
};
const loadFolderItems = () => {
for (const folderId of Object.keys(folders)) {
folderRegistry[folderId]?.setFolderItems();
}
};
$: if (folders || $chatId) {
loadFolderItems();
}
</script>
{#each ownedList as folderId (folderId)}
@@ -433,10 +433,16 @@
}
};
$: if (open) {
$: if (open && chats === null) {
setFolderItems();
}
$: if (!open && chats !== null) {
chats = null;
chatsPage = 1;
hasMoreChats = false;
}
const renameHandler = async () => {
console.log('Edit');
await tick();