mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: note & chat sticky attachment
This commit is contained in:
parent
eeed0df743
commit
776d4773a9
2 changed files with 5 additions and 3 deletions
|
|
@ -1494,7 +1494,9 @@
|
|||
const _files = JSON.parse(JSON.stringify(files));
|
||||
|
||||
chatFiles.push(
|
||||
..._files.filter((item) => ['doc', 'text', 'file', 'collection'].includes(item.type))
|
||||
..._files.filter((item) =>
|
||||
['doc', 'text', 'file', 'note', 'chat', 'collection'].includes(item.type)
|
||||
)
|
||||
);
|
||||
chatFiles = chatFiles.filter(
|
||||
// Remove duplicates
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
import Messages from '../chat/Messages.svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
import PencilSquare from '../icons/PencilSquare.svelte';
|
||||
import Note from '../icons/Note.svelte';
|
||||
import PageEdit from '../icons/PageEdit.svelte';
|
||||
dayjs.extend(calendar);
|
||||
|
||||
export let show = false;
|
||||
|
|
@ -237,7 +237,7 @@
|
|||
show = false;
|
||||
onClose();
|
||||
},
|
||||
icon: Note
|
||||
icon: PageEdit
|
||||
}
|
||||
]
|
||||
: [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue