From fa38cd4a904120c4c3b09b1a709e8549d24060d8 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 11 Jun 2025 10:57:52 +0800 Subject: [PATCH] chore: converstation var reset --- web/app/components/workflow/variable-inspect/right.tsx | 5 ++--- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/variable-inspect/right.tsx b/web/app/components/workflow/variable-inspect/right.tsx index 8bc9d9d2e2..e4563567c1 100644 --- a/web/app/components/workflow/variable-inspect/right.tsx +++ b/web/app/components/workflow/variable-inspect/right.tsx @@ -2,7 +2,6 @@ import { useTranslation } from 'react-i18next' import { RiArrowGoBackLine, RiCloseLine, - RiDeleteBinLine, RiMenuLine, } from '@remixicon/react' import { useStore } from '../store' @@ -118,9 +117,9 @@ const Right = ({ )} {currentNodeVar.var.type === VarInInspectType.conversation && ( - + - + )} diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index fb38646529..9cbf73fc97 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -926,6 +926,7 @@ const translation = { emptyLink: 'Learn more', clearAll: 'Reset all', clearNode: 'Clear cached variable', + resetConversationVar: 'Reset conversation variable to default value', view: 'View log', edited: 'Edited', reset: 'Reset to last run value', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index be239b8f64..bd009bbf02 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -927,6 +927,7 @@ const translation = { emptyLink: '了解更多', clearAll: '重置所有', clearNode: '清除缓存', + resetConversationVar: '重置会话变量为默认值', view: '查看记录', edited: '已编辑', reset: '还原至上一次运行',