feat: 系统设置-交互行为优化. 系统设置区块,配置操作,提交按钮,初始化时,支持设置提交成功后的回调
This commit is contained in:
parent
67d6b2d5f4
commit
953e13fce7
@ -17,6 +17,11 @@ export const UpdateSubmitActionInitializer = (props) => {
|
||||
},
|
||||
'x-action-settings': {
|
||||
triggerWorkflows: [],
|
||||
onSuccess: {
|
||||
manualClose: false,
|
||||
redirecting: false,
|
||||
successMessage: '{{t("Updated successfully")}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
return <ActionInitializer {...props} schema={schema} />;
|
||||
|
@ -3,6 +3,7 @@ import { isValid } from '@nocobase/schema';
|
||||
import { isInitializersSame, useSchemaToolbar } from '../../../application';
|
||||
import { SchemaSettings } from '../../../application/schema-settings/SchemaSettings';
|
||||
import {
|
||||
AfterSuccess,
|
||||
ButtonEditor,
|
||||
RemoveButton,
|
||||
SecondConFirm,
|
||||
@ -25,6 +26,10 @@ export const updateSubmitActionSettings = new SchemaSettings({
|
||||
name: 'secondConfirmation',
|
||||
Component: SecondConFirm,
|
||||
},
|
||||
{
|
||||
name: 'afterSuccessfulSubmission',
|
||||
Component: AfterSuccess,
|
||||
},
|
||||
{
|
||||
name: 'workflowConfig',
|
||||
Component: WorkflowConfig,
|
||||
|
Loading…
Reference in New Issue
Block a user