From 953e13fce709cd6b4b596cec8afd82346517b55e Mon Sep 17 00:00:00 2001 From: "bai.jingfeng" Date: Tue, 2 Apr 2024 20:05:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE-?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E8=A1=8C=E4=B8=BA=E4=BC=98=E5=8C=96.=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=E5=8C=BA=E5=9D=97,?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=93=8D=E4=BD=9C,=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=8C=89=E9=92=AE,=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6,?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E6=8F=90=E4=BA=A4=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=E7=9A=84=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/actions/submit/UpdateSubmitActionInitializer.tsx | 5 +++++ .../modules/actions/submit/updateSubmitActionSettings.tsx | 5 +++++ 2 files changed, 10 insertions(+) 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,