This commit is contained in:
Timothy Jaeryang Baek
2025-12-21 16:10:51 +04:00
parent 0dd2cfe1f2
commit 5077676d33
2 changed files with 11 additions and 8 deletions
@@ -826,16 +826,16 @@
{#if knowledge?.write_access}
<div>
<AddContentMenu
on:upload={(e) => {
if (e.detail.type === 'directory') {
onUpload={(data) => {
if (data.type === 'directory') {
uploadDirectoryHandler();
} else if (e.detail.type === 'text') {
} else if (data.type === 'text') {
showAddTextContentModal = true;
} else {
document.getElementById('files-input').click();
}
}}
on:sync={(e) => {
onSync={() => {
showSyncConfirmModal = true;
}}
/>