Fix PR feedback

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-08-26 16:01:27 +02:00
parent 82ae1fc6c1
commit a8ea727e63
4 changed files with 6 additions and 5 deletions

View File

@ -94,9 +94,7 @@
"Settings.roles.create.description": "Define the rights given to the role",
"Settings.roles.create.title": "Create a role",
"Settings.roles.created": "Role created",
"Settings.roles.deleted": "Role deleted",
"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.created": "Created",
"Settings.roles.form.description": "Name and description of the role",

View File

@ -64,7 +64,7 @@ const EditPage = () => {
})
)
.then(() => {
strapi.notification.success('Settings.roles.edited');
strapi.notification.success(getTrad('Settings.roles.edited'));
})
.catch(err => {
console.error(err);

View File

@ -10,6 +10,7 @@ import { EmptyRole, RoleListWrapper, RoleRow } from '../../../components/Roles';
import { useRolesList } from '../../../hooks';
import BaselineAlignment from './BaselineAlignment';
import pluginId from '../../../pluginId';
import { getTrad } from '../../../utils';
const RoleListPage = () => {
const { formatMessage } = useIntl();
@ -43,7 +44,7 @@ const RoleListPage = () => {
})
)
.then(() => {
strapi.notification.success('Settings.roles.deleted');
strapi.notification.success(getTrad('Settings.roles.deleted'));
})
.catch(err => {
console.error(err);

View File

@ -58,5 +58,7 @@
"popUpWarning.button.cancel": "Cancel",
"popUpWarning.button.confirm": "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"
}