Show policy type in form title (#3245)
This commit is contained in:
parent
985c8dc90a
commit
9e3cceb016
2 changed files with 6 additions and 1 deletions
|
@ -183,6 +183,7 @@
|
|||
"updateScopeSuccess": "Authorization scope successfully updated",
|
||||
"scopeSaveError": "Could not persist authorization scope due to {{error}}",
|
||||
"createPolicy": "Create policy",
|
||||
"createPolicyOfType": "Create {{policyType}} policy",
|
||||
"dependentPermission": "Dependent permission",
|
||||
"deletePolicy": "Permanently delete policy?",
|
||||
"deletePolicyConfirm": "If you delete this policy, some permissions or aggregated policies will be affected.",
|
||||
|
|
|
@ -172,7 +172,11 @@ export default function PolicyDetails() {
|
|||
<>
|
||||
<DeleteConfirm />
|
||||
<ViewHeader
|
||||
titleKey={policyId ? policy?.name! : "clients:createPolicy"}
|
||||
titleKey={
|
||||
policyId
|
||||
? policy?.name!
|
||||
: t("clients:createPolicyOfType", { policyType })
|
||||
}
|
||||
dropdownItems={
|
||||
policyId
|
||||
? [
|
||||
|
|
Loading…
Reference in a new issue