fix(plugin-workflow): fix create/edit workflow form (#2470)
This commit is contained in:
parent
8528aba694
commit
aa6facac97
@ -102,13 +102,14 @@ const workflowFieldset = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
'x-component': 'fieldset',
|
'x-component': 'fieldset',
|
||||||
properties: {
|
properties: {
|
||||||
useTransaction: {
|
// NOTE: not to expose this option for now, because hard to track errors
|
||||||
type: 'boolean',
|
// useTransaction: {
|
||||||
title: `{{ t("Use transaction", { ns: "${NAMESPACE}" }) }}`,
|
// type: 'boolean',
|
||||||
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}" }) }}`,
|
// title: `{{ t("Use transaction", { ns: "${NAMESPACE}" }) }}`,
|
||||||
'x-decorator': 'FormItem',
|
// 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-component': 'Checkbox',
|
// 'x-decorator': 'FormItem',
|
||||||
},
|
// 'x-component': 'Checkbox',
|
||||||
|
// },
|
||||||
deleteExecutionOnStatus: {
|
deleteExecutionOnStatus: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
title: `{{ t("Auto delete history when execution is on end status", { ns: "${NAMESPACE}" }) }}`,
|
title: `{{ t("Auto delete history when execution is on end status", { ns: "${NAMESPACE}" }) }}`,
|
||||||
@ -177,7 +178,10 @@ export const workflowSchema: ISchema = {
|
|||||||
},
|
},
|
||||||
title: '{{t("Add new")}}',
|
title: '{{t("Add new")}}',
|
||||||
properties: {
|
properties: {
|
||||||
...workflowFieldset,
|
title: workflowFieldset.title,
|
||||||
|
type: workflowFieldset.type,
|
||||||
|
description: workflowFieldset.description,
|
||||||
|
options: workflowFieldset.options,
|
||||||
footer: {
|
footer: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Action.Drawer.Footer',
|
'x-component': 'Action.Drawer.Footer',
|
||||||
@ -338,7 +342,10 @@ export const workflowSchema: ISchema = {
|
|||||||
},
|
},
|
||||||
title: '{{ t("Edit") }}',
|
title: '{{ t("Edit") }}',
|
||||||
properties: {
|
properties: {
|
||||||
...workflowFieldset,
|
title: workflowFieldset.title,
|
||||||
|
enabled: workflowFieldset.enabled,
|
||||||
|
description: workflowFieldset.description,
|
||||||
|
options: workflowFieldset.options,
|
||||||
footer: {
|
footer: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Action.Drawer.Footer',
|
'x-component': 'Action.Drawer.Footer',
|
||||||
|
Loading…
Reference in New Issue
Block a user