fixed text for empty state #415
This commit is contained in:
parent
ab857938cd
commit
3978191d24
4 changed files with 15 additions and 6 deletions
|
@ -254,7 +254,11 @@ export const ClientDetails = () => {
|
|||
eventKey="roles"
|
||||
title={<TabTitleText>{t("roles")}</TabTitleText>}
|
||||
>
|
||||
<RolesList loader={loader} paginated={false} />
|
||||
<RolesList
|
||||
loader={loader}
|
||||
paginated={false}
|
||||
messageBundle="clients"
|
||||
/>
|
||||
</Tab>
|
||||
<Tab
|
||||
id="clientScopes"
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
"downloadAdaptorTitle": "Download adaptor configs",
|
||||
"credentials": "Credentials",
|
||||
"roles": "Roles",
|
||||
"createRole": "Create role",
|
||||
"noRoles": "No roles for this client",
|
||||
"noRolesInstructions": "You haven't created any roles for this client. Create a role to get started.",
|
||||
"clientScopes": "Client scopes",
|
||||
"addClientScope": "Add client scope",
|
||||
"addClientScopesTo": "Add client scopes to {{clientId}}",
|
||||
|
|
|
@ -15,6 +15,7 @@ import { emptyFormatter, boolFormatter } from "../util";
|
|||
type RolesListProps = {
|
||||
paginated?: boolean;
|
||||
parentRoleId?: string;
|
||||
messageBundle?: string;
|
||||
loader?: (
|
||||
first?: number,
|
||||
max?: number,
|
||||
|
@ -35,8 +36,9 @@ export const RolesList = ({
|
|||
loader,
|
||||
paginated = true,
|
||||
parentRoleId,
|
||||
messageBundle = "roles",
|
||||
}: RolesListProps) => {
|
||||
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={
|
||||
<ListEmptyState
|
||||
hasIcon={true}
|
||||
message={t("noRolesInThisRealm")}
|
||||
instructions={t("noRolesInThisRealmInstructions")}
|
||||
message={t("noRoles")}
|
||||
instructions={t("noRolesInstructions")}
|
||||
primaryActionText={t("createRole")}
|
||||
onPrimaryAction={goToCreate}
|
||||
/>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue