From 78b49b82accfa98116dc0a2fcc33af9a6730c924 Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 11 Aug 2023 12:59:31 +0700 Subject: [PATCH] fix(plugin-workflow): add enablement editing back to workflow form (#2431) --- packages/plugins/workflow/src/client/schemas/workflows.ts | 6 +++++- packages/plugins/workflow/src/locale/zh-CN.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/plugins/workflow/src/client/schemas/workflows.ts b/packages/plugins/workflow/src/client/schemas/workflows.ts index 6c99d3ac8..3091f076a 100644 --- a/packages/plugins/workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/workflow/src/client/schemas/workflows.ts @@ -90,6 +90,10 @@ const workflowFieldset = { 'x-component': 'CollectionField', 'x-decorator': 'FormItem', }, + enabled: { + 'x-component': 'CollectionField', + 'x-decorator': 'FormItem', + }, description: { 'x-component': 'CollectionField', 'x-decorator': 'FormItem', @@ -101,7 +105,7 @@ const workflowFieldset = { useTransaction: { type: 'boolean', title: `{{ t("Use transaction", { ns: "${NAMESPACE}" }) }}`, - description: `{{ t("Nodes of workflow will run in a same transaction. Any failure will cause data rollback, and will also rollback the history of the execution.", { ns: "${NAMESPACE}" }) }}`, + description: `{{ t("Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.", { ns: "${NAMESPACE}" }) }}`, 'x-decorator': 'FormItem', 'x-component': 'Checkbox', }, diff --git a/packages/plugins/workflow/src/locale/zh-CN.ts b/packages/plugins/workflow/src/locale/zh-CN.ts index 9fc8692bf..1006b7d2c 100644 --- a/packages/plugins/workflow/src/locale/zh-CN.ts +++ b/packages/plugins/workflow/src/locale/zh-CN.ts @@ -19,7 +19,7 @@ export default { Loading: '加载中', 'Load failed': '加载失败', 'Use transaction': '启用事务', - 'Nodes of workflow will run in a same transaction. Any failure will cause data rollback, and will also rollback the history of the execution.': + 'Data operation nodes in workflow will run in a same transaction until any interruption. Any failure will cause data rollback, and will also rollback the history of the execution.': '工作流中的节点将在同一个事务中运行。任何失败都会导致数据回滚,同时也会回滚相应的执行历史。', 'Auto delete history when execution is on end status': '执行结束后自动删除对应状态的历史记录', Trigger: '触发器',