From f22dcee6d9810e42374adca242b425148403363f Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 5 Sep 2025 14:45:46 +0800 Subject: [PATCH] fix: preview i18n and ui promblem --- .../nodes/human-input/components/form-content-preview.tsx | 2 +- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx index 327bb5259c..27a7d85bd3 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx @@ -74,7 +74,7 @@ const FormContentPreview: FC = ({ ))} -
In preview mode, action buttons are not functional.
+
{t('workflow.nodes.humanInput.editor.previewTip')}
) diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 1a44d09302..d4588211de 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -994,6 +994,7 @@ const translation = { }, editor: { notes: 'notes', + previewTip: 'In preview mode, action buttons are not functional.', }, errorMsg: { noDeliveryMethod: 'Please select at least one delivery method', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 7b4afda7a0..716eb71b9e 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -994,6 +994,7 @@ const translation = { }, editor: { notes: ' 笔记', + previewTip: '在预览模式下,操作按钮无法使用。', }, errorMsg: { noDeliveryMethod: '请至少选择一种提交方式',