fix(plugin-workflow): fix action order in workflow list (#2835)

This commit is contained in:
Junyi 2023-10-15 17:04:32 +08:00 committed by GitHub
parent 5fbce9fb65
commit 36f84593bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {