From c35c0fc6f41b0bea7b5bbc9f09e6fc144197d2c2 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Mon, 18 Mar 2024 15:04:02 +0800 Subject: [PATCH] chat upload file --- .../feature-panel/file-upload/index.tsx | 4 +-- .../file-upload/param-config-content.tsx | 2 +- web/app/components/workflow/features.tsx | 30 ++++++++++--------- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/web/app/components/base/features/feature-panel/file-upload/index.tsx b/web/app/components/base/features/feature-panel/file-upload/index.tsx index d002f0005d..975c413391 100644 --- a/web/app/components/base/features/feature-panel/file-upload/index.tsx +++ b/web/app/components/base/features/feature-panel/file-upload/index.tsx @@ -9,7 +9,7 @@ import { } from '../../hooks' import ParamConfig from './param-config' import Switch from '@/app/components/base/switch' -import { FileSearch02 } from '@/app/components/base/icons/src/vender/solid/files' +import { File05 } from '@/app/components/base/icons/src/vender/solid/files' type FileUploadProps = { onChange?: OnFeaturesChange @@ -38,7 +38,7 @@ const FileUpload = ({ return (
- +
{t('common.imageUploader.imageUpload')} diff --git a/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx b/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx index 1a2184c6b4..17cc37c2bb 100644 --- a/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx +++ b/web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx @@ -66,7 +66,7 @@ const ParamConfigContent = ({ return (
-
{t('appDebug.vision.visionSettings.title')}
+
{t('common.operation.settings')}
{t('appDebug.vision.visionSettings.uploadMethod')}
diff --git a/web/app/components/workflow/features.tsx b/web/app/components/workflow/features.tsx index 1cd9b5a48b..7b66ca3813 100644 --- a/web/app/components/workflow/features.tsx +++ b/web/app/components/workflow/features.tsx @@ -28,20 +28,22 @@ const Features = () => {
{t('workflow.common.features')} - { - isChatMode && ( -
- -
-
setShowFeaturesPanel(false)} - > - -
-
- ) - } +
+ { + isChatMode && ( + <> + +
+ + ) + } +
setShowFeaturesPanel(false)} + > + +
+