Skip to content

Commit a887c66

Browse files
committed
feat(small): show spinner when record action in header is clicked
1 parent 5290fbf commit a887c66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"homepage": "https://github.com/SoftwareBrothers/adminjs#readme",
7777
"dependencies": {
78-
"@adminjs/design-system": "^2.2.3",
78+
"@adminjs/design-system": "^2.2.4",
7979
"@babel/core": "^7.10.2",
8080
"@babel/parser": "^7.10.2",
8181
"@babel/plugin-transform-runtime": "^7.10.1",

src/frontend/components/app/action-header/action-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const ActionHeader: React.FC<ActionHeaderProps> = (props) => {
3939
const resourceId = resource.id
4040
const params = { resourceId, recordId: record?.id }
4141

42-
const handleActionClick = (event, sourceAction: ActionJSON): void => (
42+
const handleActionClick = (event, sourceAction: ActionJSON): any | Promise<any> => (
4343
buildActionClickHandler({
4444
action: sourceAction,
4545
params,

0 commit comments

Comments
 (0)