Skip to content

Commit 665a8fa

Browse files
committed
[B] Fix delete user notification content
1 parent 7eacaaf commit 665a8fa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

client/src/backend/containers/user/Wrapper.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ function UserWrapper({ match, route, history, confirm, location }) {
4040
const notifyDestroy = useNotification(u => ({
4141
level: 0,
4242
id: `USER_DESTROYED_${u.id}`,
43-
heading: t("notifications.reading_group_delete"),
44-
body: t("notifications.delete_entity_body", {
45-
title: u?.name
46-
}),
43+
heading: t("notifications.user_delete", { name: u.attributes.fullName }),
4744
expiration: 5000
4845
}));
4946

client/src/config/app/locale/en-US/json/shared/notifications.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"resource_collection_delete": "The resource collection has been destroyed.",
1919
"resource_delete": "The resource has been destroyed.",
2020
"text_delete": "The text has been destroyed.",
21+
"user_delete": "{{name}} has been removed.",
2122
"volume_body": "Volume #{{number}} has passed into the endless night.",
2223
"volume_delete": "The volume has been destroyed."
2324
}

0 commit comments

Comments
 (0)