mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:37:37 +00:00
fix: missing RefreshActionInitializer
(cherry picked from commit e6340fc233
)
This commit is contained in:
parent
2277e40290
commit
5129fc8f46
@ -0,0 +1,16 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { ActionInitializer } from "./ActionInitializer";
|
||||||
|
|
||||||
|
export const RefreshActionInitializer = (props) => {
|
||||||
|
const schema = {
|
||||||
|
title: '{{ t("Refresh") }}',
|
||||||
|
'x-action': 'refresh',
|
||||||
|
'x-component': 'Action',
|
||||||
|
'x-designer': 'Action.Designer',
|
||||||
|
'x-component-props': {
|
||||||
|
icon: 'ReloadOutlined',
|
||||||
|
useProps: '{{ useRefreshActionProps }}',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
return <ActionInitializer {...props} schema={schema} />;
|
||||||
|
};
|
@ -24,6 +24,7 @@ export * from './RecordAssociationFormBlockInitializer';
|
|||||||
export * from './RecordFormBlockInitializer';
|
export * from './RecordFormBlockInitializer';
|
||||||
export * from './RecordReadPrettyAssociationFormBlockInitializer';
|
export * from './RecordReadPrettyAssociationFormBlockInitializer';
|
||||||
export * from './RecordReadPrettyFormBlockInitializer';
|
export * from './RecordReadPrettyFormBlockInitializer';
|
||||||
|
export * from './RefreshActionInitializer';
|
||||||
export * from './SubmitActionInitializer';
|
export * from './SubmitActionInitializer';
|
||||||
export * from './TableActionColumnInitializer';
|
export * from './TableActionColumnInitializer';
|
||||||
export * from './TableBlockInitializer';
|
export * from './TableBlockInitializer';
|
||||||
@ -32,3 +33,4 @@ export * from './TableSelectorInitializer';
|
|||||||
export * from './UpdateActionInitializer';
|
export * from './UpdateActionInitializer';
|
||||||
export * from './UpdateSubmitActionInitializer';
|
export * from './UpdateSubmitActionInitializer';
|
||||||
export * from './ViewActionInitializer';
|
export * from './ViewActionInitializer';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user