mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
Merge branch 'next' into develop
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
/**
|
||||
* This file is part of the NocoBase (R) project.
|
||||
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
||||
* Authors: NocoBase Team.
|
||||
*
|
||||
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||
*/
|
||||
|
||||
import { FormBlockModel, Plugin } from '@nocobase/client';
|
||||
import { FlowModelContext } from '@nocobase/flow-engine';
|
||||
import { Alert, Button } from 'antd';
|
||||
@@ -66,8 +75,7 @@ FormBlockModel.registerFlow({
|
||||
await ctx.draftRepository.create();
|
||||
return;
|
||||
}
|
||||
const model = ctx.blockModel as FormBlockModel;
|
||||
model.form.setFieldsValue(draft.values || {});
|
||||
await ctx.setFormValues(draft.values);
|
||||
ctx.showDraftAlert(
|
||||
'This is an unsubmitted draft. You can continue editing and submit it, or click “Delete draft” to start over.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user