From d693aad89b70302a28f3e1c8c8598614db1eee1e Mon Sep 17 00:00:00 2001 From: Junyi Date: Sat, 5 Aug 2023 08:08:18 +0700 Subject: [PATCH] feat(plugin-workflow): add modal to edit title when duplicating workflow (#2399) --- .../antd/action/Action.Modal.tsx | 4 - .../workflow/src/client/WorkflowProvider.tsx | 18 +---- .../workflow/src/client/schemas/workflows.ts | 79 +++++++++++++++---- packages/plugins/workflow/src/locale/zh-CN.ts | 1 + .../workflow/src/server/actions/workflows.ts | 4 +- 5 files changed, 69 insertions(+), 37 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx index 58ae6e7c9..251654284 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Modal.tsx @@ -59,10 +59,6 @@ export const ActionModal: ComposedActionDrawer = observer( display: flex; justify-content: flex-end; width: 100%; - - .ant-btn { - margin-right: 8px; - } `} > { const origin = await repository.findOne({ @@ -115,7 +115,7 @@ export async function revision(context: Context, next) { title: origin.title, allExecuted: origin.allExecuted, } - : {}; + : values; const instance = await repository.create({ values: {