mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +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));
|
const _files = JSON.parse(JSON.stringify(files));
|
||||||
|
|
||||||
chatFiles.push(
|
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(
|
chatFiles = chatFiles.filter(
|
||||||
// Remove duplicates
|
// Remove duplicates
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
import Messages from '../chat/Messages.svelte';
|
import Messages from '../chat/Messages.svelte';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import PencilSquare from '../icons/PencilSquare.svelte';
|
import PencilSquare from '../icons/PencilSquare.svelte';
|
||||||
import Note from '../icons/Note.svelte';
|
import PageEdit from '../icons/PageEdit.svelte';
|
||||||
dayjs.extend(calendar);
|
dayjs.extend(calendar);
|
||||||
|
|
||||||
export let show = false;
|
export let show = false;
|
||||||
|
|
@ -237,7 +237,7 @@
|
||||||
show = false;
|
show = false;
|
||||||
onClose();
|
onClose();
|
||||||
},
|
},
|
||||||
icon: Note
|
icon: PageEdit
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
: [])
|
: [])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue