From 36f84593bbe969f0f869c6587f20759e1498589f Mon Sep 17 00:00:00 2001 From: Junyi Date: Sun, 15 Oct 2023 17:04:32 +0800 Subject: [PATCH] fix(plugin-workflow): fix action order in workflow list (#2835) --- .../src/client/schemas/workflows.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts index c6b7f0bb98..0809535718 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts @@ -170,6 +170,18 @@ export const workflowSchema: ISchema = { }, 'x-align': 'left', }, + delete: { + type: 'void', + title: '{{t("Delete")}}', + 'x-component': 'Action', + 'x-component-props': { + useAction: '{{ cm.useBulkDestroyAction }}', + confirm: { + title: "{{t('Delete record')}}", + content: "{{t('Are you sure you want to delete it?')}}", + }, + }, + }, create: { type: 'void', title: '{{t("Add new")}}', @@ -218,18 +230,6 @@ export const workflowSchema: ISchema = { }, }, }, - delete: { - type: 'void', - title: '{{t("Delete")}}', - 'x-component': 'Action', - 'x-component-props': { - useAction: '{{ cm.useBulkDestroyAction }}', - confirm: { - title: "{{t('Delete record')}}", - content: "{{t('Are you sure you want to delete it?')}}", - }, - }, - }, }, }, table: {