Skip to content

Commit 3a43a79

Browse files
committed
Merge branch 'feature/AdminForth/1374/instead-of-bulk-actions-we-nee' of github.com:devforth/adminforth into feature/AdminForth/1374/instead-of-bulk-actions-we-nee
2 parents fa50659 + 6f02342 commit 3a43a79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
16141614
return { error: await tr(`Action {actionId} not found`, 'errors', { actionId }) };
16151615
}
16161616
if (!action.bulkHandler) {
1617-
return { error: `Action "${actionId}" has no bulkHandler` };
1617+
return { error: await tr(`Action "{actionId}" has no bulkHandler`, 'errors', { actionId }) };
16181618
}
16191619
if (action.allowed) {
16201620
const execAllowed = await action.allowed({ adminUser, standardAllowedActions: allowedActions });

adminforth/types/Back.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ export interface AdminForthActionInput {
13081308
bulkHandler?: (params: {
13091309
adminforth: IAdminForth;
13101310
resource: AdminForthResource;
1311-
recordIds: string[];
1311+
recordIds: (string | number)[];
13121312
adminUser: AdminUser;
13131313
response: IAdminForthHttpResponse;
13141314
extra?: HttpExtra;

0 commit comments

Comments
 (0)