mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-30 03:08:31 +08:00
fix: missing afterSuccess configuration for the submit action (#5329)
This commit is contained in:
parent
c3e740b552
commit
7f6c19c16e
@ -52,10 +52,6 @@ export const customizeSaveRecordActionSettings = new SchemaSettings({
|
||||
{
|
||||
name: 'afterSuccessfulSubmission',
|
||||
Component: AfterSuccess,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'bindWorkflow',
|
||||
|
@ -181,10 +181,6 @@ export const createSubmitActionSettings = new SchemaSettings({
|
||||
{
|
||||
name: 'afterSuccessfulSubmission',
|
||||
Component: AfterSuccess,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'refreshDataBlockRequest',
|
||||
|
@ -71,10 +71,6 @@ export const updateSubmitActionSettings = new SchemaSettings({
|
||||
{
|
||||
name: 'afterSuccessfulSubmission',
|
||||
Component: AfterSuccess,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'refreshDataBlockRequest',
|
||||
|
@ -144,10 +144,6 @@ const schemaSettingsItems: SchemaSettingsItemType[] = [
|
||||
{
|
||||
name: 'afterSuccess',
|
||||
Component: AfterSuccess,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'refreshDataBlockRequest',
|
||||
|
@ -47,10 +47,6 @@ export const customizeSubmitToWorkflowActionSettings = new SchemaSettings({
|
||||
{
|
||||
name: 'afterSuccessfulSubmission',
|
||||
Component: AfterSuccess,
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'bindWorkflow',
|
||||
|
Loading…
Reference in New Issue
Block a user