fix(plugin-workflow): fix bind hint based on event type (#4349)

* fix(plugin-workflow): fix bind hint based on event type

* fix(plugin-workflow): fix bind hint based on event type
This commit is contained in:
Junyi 2024-05-14 17:20:23 +08:00 committed by GitHub
parent 410af77f0c
commit 21ab4c5d45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 9 deletions

View File

@ -453,12 +453,18 @@ export function WorkflowConfig() {
const buttonAction = fieldSchema['x-action'];
const description = {
submit: t('Workflow will be triggered before or after submitting succeeded based on workflow type.', {
ns: 'workflow',
}),
'customize:save': t('Workflow will be triggered before or after submitting succeeded based on workflow type.', {
ns: 'workflow',
}),
submit: t(
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).',
{
ns: 'workflow',
},
),
'customize:save': t(
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).',
{
ns: 'workflow',
},
),
'customize:triggerWorkflows': t(
'Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with "Custom action event".',
{ ns: '@nocobase/plugin-workflow-custom-action-trigger' },
@ -467,7 +473,9 @@ export function WorkflowConfig() {
'"Submit to workflow" to "Post-action event" is deprecated, please use "Custom action event" instead.',
{ ns: 'workflow' },
),
destroy: t('Workflow will be triggered before deleting succeeded.', { ns: 'workflow' }),
destroy: t('Workflow will be triggered before deleting succeeded (only supports pre-action event).', {
ns: 'workflow',
}),
}[fieldSchema?.['x-action']];
return (

View File

@ -37,10 +37,10 @@
"适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。",
"Go back": "返回",
"Bind workflows": "绑定工作流",
"Workflow will be triggered before or after submitting succeeded based on workflow type.": "工作流会基于其类型在提交成功之前或之后触发。",
"Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).": "工作流会基于其类型在提交成功之前或之后触发(支持操作前、操作后和审批事件)。",
"Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action event\".": "按钮点击后直接触发工作流,但不会保存数据。仅支持绑定“自定义操作事件”。",
"\"Submit to workflow\" to \"Post-action event\" is deprecated, please use \"Custom action event\" instead.": "“提交至工作流”到“操作后事件”的方式已被弃用,请使用“自定义操作事件”代替。",
"Workflow will be triggered before deleting succeeded.": "删除成功之前触发工作流。",
"Workflow will be triggered before deleting succeeded (only supports pre-action event).": "删除成功之前触发工作流(支持操作前事件)。",
"Submit to workflow": "提交至工作流",
"Add workflow": "添加工作流",
"Select workflow": "选择工作流",