Show correct breadcrumb title for resource, policy and scope details (#19581)

Closes #19533
This commit is contained in:
Pedro Hos 2023-04-07 06:06:08 -03:00 committed by GitHub
parent ad3b264088
commit 2de052889a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -128,6 +128,7 @@
"importResourceSuccess": "The resource was successfully imported",
"importResourceError": "Could not import the resource due to {{error}}",
"createResource": "Create resource",
"resourceDetails": "Resource details",
"emptyPermissions": "No permissions",
"emptyPermissionInstructions": "If you want to create a permission, please click the button below to create a resource-based or scope-based permission.",
"noScopeCreateHint": "You'll need to create an authorization scope first.",
@ -181,12 +182,14 @@
"updatePermissionSuccess": "Successfully updated the permission",
"permissionSaveError": "Could not update the permission due to {{error}}",
"createAuthorizationScope": "Create authorization scope",
"authorizationScopeDetails": "Authorization scope details",
"emptyAuthorizationScopes": "No authorization scopes",
"emptyAuthorizationInstructions": "If you want to create authorization scopes, please click the button below to create the authorization scope",
"createScopeSuccess": "Authorization scope created successfully",
"updateScopeSuccess": "Authorization scope successfully updated",
"scopeSaveError": "Could not persist authorization scope due to {{error}}",
"createPolicy": "Create policy",
"policyDetails": "Policy details",
"createPolicyOfType": "Create {{policyType}} policy",
"dependentPermission": "Dependent permission",
"deletePolicy": "Permanently delete policy?",

View file

@ -17,7 +17,7 @@ const PolicyDetails = lazy(
export const PolicyDetailsRoute: AppRouteObject = {
path: "/:realm/clients/:id/authorization/policy/:policyId/:policyType",
element: <PolicyDetails />,
breadcrumb: (t) => t("clients:createPolicy"),
breadcrumb: (t) => t("clients:policyDetails"),
handle: {
access: "view-clients",
},

View file

@ -14,7 +14,7 @@ const ResourceDetails = lazy(() => import("../authorization/ResourceDetails"));
export const ResourceDetailsRoute: AppRouteObject = {
path: "/:realm/clients/:id/authorization/resource",
element: <ResourceDetails />,
breadcrumb: (t) => t("clients:createResource"),
breadcrumb: (t) => t("clients:resourceDetails"),
handle: {
access: "view-clients",
},

View file

@ -14,7 +14,7 @@ const ScopeDetails = lazy(() => import("../authorization/ScopeDetails"));
export const ScopeDetailsRoute: AppRouteObject = {
path: "/:realm/clients/:id/authorization/scope",
element: <ScopeDetails />,
breadcrumb: (t) => t("clients:createAuthorizationScope"),
breadcrumb: (t) => t("clients:authorizationScopeDetails"),
handle: {
access: "manage-clients",
},