mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
d7467a86e2
commit
6068e23590
1 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,7 @@
|
||||||
import FilesOverlay from '$lib/components/chat/MessageInput/FilesOverlay.svelte';
|
import FilesOverlay from '$lib/components/chat/MessageInput/FilesOverlay.svelte';
|
||||||
import DropdownOptions from '$lib/components/common/DropdownOptions.svelte';
|
import DropdownOptions from '$lib/components/common/DropdownOptions.svelte';
|
||||||
import Pagination from '$lib/components/common/Pagination.svelte';
|
import Pagination from '$lib/components/common/Pagination.svelte';
|
||||||
|
import { i } from 'vitest/dist/reporters-w_64AS5f.js';
|
||||||
|
|
||||||
let largeScreen = true;
|
let largeScreen = true;
|
||||||
|
|
||||||
|
|
@ -566,6 +567,11 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
dragged = false;
|
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) => {
|
const handleUploadingFileFolder = (items) => {
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
if (item.isFile) {
|
if (item.isFile) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue