refac
This commit is contained in:
1 parent
d7467a86e2
commit
6068e23590
1 file changed
+6
@@ -52,6 +52,7 @@
|
||||
import FilesOverlay from '$lib/components/chat/MessageInput/FilesOverlay.svelte';
|
||||
import DropdownOptions from '$lib/components/common/DropdownOptions.svelte';
|
||||
import Pagination from '$lib/components/common/Pagination.svelte';
|
||||
import { i } from 'vitest/dist/reporters-w_64AS5f.js';
|
||||
|
||||
let largeScreen = true;
|
||||
|
||||
@@ -566,6 +567,11 @@
|
||||
e.preventDefault();
|
||||
dragged = false;
|
||||
|
||||
if (!knowledge?.write_access) {
|
||||
toast.error($i18n.t('You do not have permission to upload files to this knowledge base.'));
|
||||
return;
|
||||
}
|
||||
|
||||
const handleUploadingFileFolder = (items) => {
|
||||
for (const item of items) {
|
||||
if (item.isFile) {
|
||||
|
||||
Reference in new issue
Block a user