mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac
This commit is contained in:
parent
2b9e30a107
commit
217bd440c3
1 changed files with 6 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
import { toast } from 'svelte-sonner';
|
||||
|
||||
import { selectedFolder } from '$lib/stores';
|
||||
import { chatId, selectedFolder } from '$lib/stores';
|
||||
|
||||
import {
|
||||
deleteFolderById,
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
import FolderMenu from './Folders/FolderMenu.svelte';
|
||||
import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
|
||||
import EditFolderModal from './Folders/EditFolderModal.svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
export let open = false;
|
||||
|
||||
|
|
@ -422,8 +423,11 @@
|
|||
on:dblclick={() => {
|
||||
renameHandler();
|
||||
}}
|
||||
on:click={(e) => {
|
||||
on:click={async (e) => {
|
||||
selectedFolder.set(folders[folderId]);
|
||||
if ($chatId) {
|
||||
await goto('/');
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div class="text-gray-300 dark:text-gray-600">
|
||||
|
|
|
|||
Loading…
Reference in a new issue