mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
d54896ca66
commit
57972605f2
3 changed files with 6 additions and 0 deletions
|
|
@ -852,6 +852,7 @@
|
|||
{#if folders}
|
||||
<Folders
|
||||
{folders}
|
||||
{shiftKey}
|
||||
on:import={(e) => {
|
||||
const { folderId, items } = e.detail;
|
||||
importChatHandler(items, false, folderId);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
const dispatch = createEventDispatcher();
|
||||
import RecursiveFolder from './RecursiveFolder.svelte';
|
||||
export let folders = {};
|
||||
export let shiftKey = false;
|
||||
|
||||
let folderList = [];
|
||||
// Get the list of folders that have no parent, sorted by name alphabetically
|
||||
|
|
@ -22,6 +23,7 @@
|
|||
className=""
|
||||
{folders}
|
||||
{folderId}
|
||||
{shiftKey}
|
||||
on:import={(e) => {
|
||||
dispatch('import', e.detail);
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
export let folders;
|
||||
export let folderId;
|
||||
export let shiftKey = false;
|
||||
|
||||
export let className = '';
|
||||
|
||||
|
|
@ -476,6 +477,7 @@
|
|||
<svelte:self
|
||||
{folders}
|
||||
folderId={childFolder.id}
|
||||
{shiftKey}
|
||||
parentDragged={dragged}
|
||||
on:import={(e) => {
|
||||
dispatch('import', e.detail);
|
||||
|
|
@ -495,6 +497,7 @@
|
|||
<ChatItem
|
||||
id={chat.id}
|
||||
title={chat.title}
|
||||
{shiftKey}
|
||||
on:change={(e) => {
|
||||
dispatch('change', e.detail);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue