Show policy type in form title (#3245)

This commit is contained in:
Jon Koops 2022-09-12 22:43:51 +02:00 committed by GitHub
parent 985c8dc90a
commit 9e3cceb016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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.",

View file

@ -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
? [