fix: update form submit action missing linkageRules setting (#4515)

This commit is contained in:
Katherine 2024-05-29 13:47:00 +08:00 committed by GitHub
parent e03b5b873b
commit 6a9d39f25d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,8 @@ import {
WorkflowConfig,
} from '../../../schema-component/antd/action/Action.Designer';
import { SaveMode } from './createSubmitActionSettings';
import { SchemaSettingsLinkageRules } from '../../../schema-settings';
import { useCollection_deprecated } from '../../../collection-manager';
export const updateSubmitActionSettings = new SchemaSettings({
name: 'actionSettings:updateSubmit',
@ -34,6 +36,18 @@ export const updateSubmitActionSettings = new SchemaSettings({
return buttonEditorProps;
},
},
{
name: 'linkageRules',
Component: SchemaSettingsLinkageRules,
useComponentProps() {
const { name } = useCollection_deprecated();
const { linkageRulesProps } = useSchemaToolbar();
return {
...linkageRulesProps,
collectionName: name,
};
},
},
{
name: 'secondConfirmation',
Component: SecondConFirm,