mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
82ae1fc6c1
commit
a8ea727e63
@ -94,9 +94,7 @@
|
|||||||
"Settings.roles.create.description": "Define the rights given to the role",
|
"Settings.roles.create.description": "Define the rights given to the role",
|
||||||
"Settings.roles.create.title": "Create a role",
|
"Settings.roles.create.title": "Create a role",
|
||||||
"Settings.roles.created": "Role created",
|
"Settings.roles.created": "Role created",
|
||||||
"Settings.roles.deleted": "Role deleted",
|
|
||||||
"Settings.roles.edit.title": "Edit a role",
|
"Settings.roles.edit.title": "Edit a role",
|
||||||
"Settings.roles.edited": "Role edited",
|
|
||||||
"Settings.roles.form.button.users-with-role": "Users with this role",
|
"Settings.roles.form.button.users-with-role": "Users with this role",
|
||||||
"Settings.roles.form.created": "Created",
|
"Settings.roles.form.created": "Created",
|
||||||
"Settings.roles.form.description": "Name and description of the role",
|
"Settings.roles.form.description": "Name and description of the role",
|
||||||
|
@ -64,7 +64,7 @@ const EditPage = () => {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
strapi.notification.success('Settings.roles.edited');
|
strapi.notification.success(getTrad('Settings.roles.edited'));
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
@ -10,6 +10,7 @@ import { EmptyRole, RoleListWrapper, RoleRow } from '../../../components/Roles';
|
|||||||
import { useRolesList } from '../../../hooks';
|
import { useRolesList } from '../../../hooks';
|
||||||
import BaselineAlignment from './BaselineAlignment';
|
import BaselineAlignment from './BaselineAlignment';
|
||||||
import pluginId from '../../../pluginId';
|
import pluginId from '../../../pluginId';
|
||||||
|
import { getTrad } from '../../../utils';
|
||||||
|
|
||||||
const RoleListPage = () => {
|
const RoleListPage = () => {
|
||||||
const { formatMessage } = useIntl();
|
const { formatMessage } = useIntl();
|
||||||
@ -43,7 +44,7 @@ const RoleListPage = () => {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
strapi.notification.success('Settings.roles.deleted');
|
strapi.notification.success(getTrad('Settings.roles.deleted'));
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
@ -58,5 +58,7 @@
|
|||||||
"popUpWarning.button.cancel": "Cancel",
|
"popUpWarning.button.cancel": "Cancel",
|
||||||
"popUpWarning.button.confirm": "Confirm",
|
"popUpWarning.button.confirm": "Confirm",
|
||||||
"popUpWarning.title": "Please confirm",
|
"popUpWarning.title": "Please confirm",
|
||||||
"popUpWarning.warning.cancel": "Are you sure you want to cancel your modifications?"
|
"popUpWarning.warning.cancel": "Are you sure you want to cancel your modifications?",
|
||||||
|
"Settings.roles.deleted": "Role deleted",
|
||||||
|
"Settings.roles.edited": "Role edited"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user