Skip to content

Commit 4df0442

Browse files
authored
Fix Sharing notification message string (#22587)
* fix order of parameters for function call * fix order of parameters for function call
1 parent e52b7ae commit 4df0442

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graylog2-web-interface/src/domainActions/permissions/EntityShareDomain.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ import notifyingAction from '../notifyingAction';
2020

2121
const prepare = notifyingAction({
2222
action: EntityShareActions.prepare,
23-
error: (error, entityName, entityType) => ({
23+
error: (error, entityType, entityName) => ({
2424
message: `Preparing shares for ${entityType} "${entityName}" failed with status: ${error}`,
2525
}),
2626
});
2727

2828
const update = notifyingAction({
2929
action: EntityShareActions.update,
30-
error: (error, entityName, entityType) => ({
30+
error: (error, entityType, entityName) => ({
3131
message: `Updating shares for ${entityType} "${entityName}" failed with status: ${error}`,
3232
}),
33-
success: (entityName, entityType) => ({
33+
success: (entityType, entityName) => ({
3434
message: `Shares for ${entityType} "${entityName}" updated successfully`,
3535
}),
3636
});

0 commit comments

Comments
 (0)