From 3978191d24d0f33c48eb609ac117ddf95b7352c8 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 15 Mar 2021 14:42:19 +0100 Subject: [PATCH] fixed text for empty state #415 --- src/clients/ClientDetails.tsx | 6 +++++- src/clients/messages.json | 3 +++ src/realm-roles/RolesList.tsx | 8 +++++--- src/realm-roles/messages.json | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/clients/ClientDetails.tsx b/src/clients/ClientDetails.tsx index 66a6c4cf6a..5cc67be6ab 100644 --- a/src/clients/ClientDetails.tsx +++ b/src/clients/ClientDetails.tsx @@ -254,7 +254,11 @@ export const ClientDetails = () => { eventKey="roles" title={{t("roles")}} > - + { - const { t } = useTranslation("roles"); + const { t } = useTranslation(messageBundle); const history = useHistory(); const adminClient = useAdminClient(); const { addAlert } = useAlerts(); @@ -121,8 +123,8 @@ export const RolesList = ({ emptyState={ diff --git a/src/realm-roles/messages.json b/src/realm-roles/messages.json index 02af1031e6..b83a159404 100644 --- a/src/realm-roles/messages.json +++ b/src/realm-roles/messages.json @@ -37,8 +37,8 @@ "roleDeleteError": "Could not delete role: {{error}}", "roleSaveSuccess": "The role has been saved", "roleSaveError": "Could not save role: {{error}}", - "noRolesInThisRealm": "No roles in this realm", - "noRolesInThisRealmInstructions": "You haven't created any roles in this realm. Create a role to get started.", + "noRoles": "No roles in this realm", + "noRolesInstructions": "You haven't created any roles in this realm. Create a role to get started.", "roleAuthentication": "Role authentication", "removeAllAssociatedRoles": "Remove all associated roles", "removeAssociatedRoles": "Remove associated roles",