diff --git a/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx b/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx index 0bd0cb872..04d25d515 100644 --- a/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx +++ b/packages/core/client/src/modules/actions/submit/UpdateSubmitActionInitializer.tsx @@ -17,6 +17,11 @@ export const UpdateSubmitActionInitializer = (props) => { }, 'x-action-settings': { triggerWorkflows: [], + onSuccess: { + manualClose: false, + redirecting: false, + successMessage: '{{t("Updated successfully")}}', + }, }, }; return ; diff --git a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx index 92d272c5c..9756c099f 100644 --- a/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx +++ b/packages/core/client/src/modules/actions/submit/updateSubmitActionSettings.tsx @@ -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,