added show inherited roles to empty state (#28793)

fixes: #28640

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-04-16 13:03:54 +02:00 committed by GitHub
parent 51729faf1b
commit aa2ae61f22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -660,6 +660,7 @@ addAssociatedRolesText=Add associated roles
enabledFeatures=Enabled features
groupsClaimHelp=If defined, the policy will fetch user's groups from the given claim within an access token or ID token representing the identity asking permissions. If not defined, user's groups are obtained from your realm configuration.
createGroup=Create group
validatingPublicKey= Validating public key
validatingPublicKeyId=Validating public key id
clientAuthentications.client_secret_jwt=JWT signed with client secret
created=Created
@ -1118,6 +1119,7 @@ addPostLogoutRedirectUri=Add valid post logout redirect URIs
SSOSessionMaxRememberMe=SSO Session Max Remember Me
pkceMethod=PKCE Method
noRoles-users=No roles for this user
showInheritedRoles=Show inherited roles
moveGroupEmptyInstructions=There are no sub groups, select 'Move here' to move the selected group as a subgroup of this group
hmacGenerated=hmac-generated
unlockSuccess=User successfully unlocked

View file

@ -258,6 +258,15 @@ export const RoleMapping = ({
instructions={t(`noRolesInstructions-${type}`)}
primaryActionText={t("assignRole")}
onPrimaryAction={() => setShowAssign(true)}
secondaryActions={[
{
text: t("showInheritedRoles"),
onClick: () => {
setHide(false);
refresh();
},
},
]}
/>
}
/>