mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
fix(plugin-workflow-action-trigger): fix hint (#4383)
This commit is contained in:
parent
a698de26e0
commit
69b3cfabb0
@ -454,17 +454,21 @@ export function WorkflowConfig() {
|
|||||||
|
|
||||||
const description = {
|
const description = {
|
||||||
submit: t(
|
submit: t(
|
||||||
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).',
|
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action event in local mode, and approval event).',
|
||||||
{
|
{
|
||||||
ns: 'workflow',
|
ns: 'workflow',
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
'customize:save': t(
|
'customize:save': t(
|
||||||
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).',
|
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action event in local mode, and approval event).',
|
||||||
{
|
{
|
||||||
ns: 'workflow',
|
ns: 'workflow',
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
'customize:update': t(
|
||||||
|
'Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action event in local mode, and approval event).',
|
||||||
|
{ ns: 'workflow' },
|
||||||
|
),
|
||||||
'customize:triggerWorkflows': t(
|
'customize:triggerWorkflows': t(
|
||||||
'Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with "Custom action event".',
|
'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' },
|
{ ns: '@nocobase/plugin-workflow-custom-action-trigger' },
|
||||||
@ -473,7 +477,7 @@ export function WorkflowConfig() {
|
|||||||
'"Submit to workflow" to "Post-action event" is deprecated, please use "Custom action event" instead.',
|
'"Submit to workflow" to "Post-action event" is deprecated, please use "Custom action event" instead.',
|
||||||
{ ns: 'workflow' },
|
{ ns: 'workflow' },
|
||||||
),
|
),
|
||||||
destroy: t('Workflow will be triggered before deleting succeeded (only supports pre-action event).', {
|
destroy: t('Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).', {
|
||||||
ns: 'workflow',
|
ns: 'workflow',
|
||||||
}),
|
}),
|
||||||
}[fieldSchema?.['x-action']];
|
}[fieldSchema?.['x-action']];
|
||||||
|
@ -151,11 +151,7 @@ export default class extends Trigger {
|
|||||||
CheckboxGroupWithTooltip,
|
CheckboxGroupWithTooltip,
|
||||||
};
|
};
|
||||||
isActionTriggerable = (config, context) => {
|
isActionTriggerable = (config, context) => {
|
||||||
return (
|
return !config.global && ['submit', 'customize:save', 'customize:update'].includes(context.buttonAction);
|
||||||
['create', 'update'].includes(context.formAction) &&
|
|
||||||
['submit', 'customize:save'].includes(context.buttonAction) &&
|
|
||||||
!config.global
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
useVariables(config, options) {
|
useVariables(config, options) {
|
||||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||||
|
@ -37,10 +37,10 @@
|
|||||||
"适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。",
|
"适用于需要即时反馈的用户操作。不能在此模式下使用异步节点,并且不建议在同步模式下执行耗时的操作。",
|
||||||
"Go back": "返回",
|
"Go back": "返回",
|
||||||
"Bind workflows": "绑定工作流",
|
"Bind workflows": "绑定工作流",
|
||||||
"Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action and approval event).": "工作流会基于其类型在提交成功之前或之后触发(支持操作前、操作后和审批事件)。",
|
"Workflow will be triggered before or after submitting succeeded based on workflow type (supports pre/post action event in local mode, and approval event).": "工作流会基于其类型在提交成功之前或之后触发(支持局部模式的操作前、操作后事件,和审批事件)。",
|
||||||
"Workflow will be triggered directly once the button clicked, without data saving. Only supports to be bound with \"Custom action 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.": "“提交至工作流”到“操作后事件”的方式已被弃用,请使用“自定义操作事件”代替。",
|
"\"Submit to workflow\" to \"Post-action event\" is deprecated, please use \"Custom action event\" instead.": "“提交至工作流”到“操作后事件”的方式已被弃用,请使用“自定义操作事件”代替。",
|
||||||
"Workflow will be triggered before deleting succeeded (only supports pre-action event).": "删除成功之前触发工作流(支持操作前事件)。",
|
"Workflow will be triggered before deleting succeeded (only supports pre-action event in local mode).": "删除成功之前触发工作流(支持操作前事件)。",
|
||||||
"Submit to workflow": "提交至工作流",
|
"Submit to workflow": "提交至工作流",
|
||||||
"Add workflow": "添加工作流",
|
"Add workflow": "添加工作流",
|
||||||
"Select workflow": "选择工作流",
|
"Select workflow": "选择工作流",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user