From 82ae047231ec20997172d1d4634c02a08e6e82bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=89=E8=99=8E?= Date: Tue, 21 May 2024 19:56:57 +0800 Subject: [PATCH] Update KeysListTab.tsx (#29337) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update KeysListTab.tsx Signed-off-by: 秉虎 * added missing singular key Signed-off-by: Erik Jan de Wit --------- Signed-off-by: 秉虎 Signed-off-by: Erik Jan de Wit Co-authored-by: Erik Jan de Wit --- .../keycloak.v2/admin/messages/messages_en.properties | 1 + js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties index b5df8ecbdf..9cf308ec41 100644 --- a/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties +++ b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties @@ -1199,6 +1199,7 @@ moveTo=Move to registerNodeManually=Register node manually redirectURI=Redirect URI publicKeys=Public keys +publicKey=Public key emptyEventsInstructions=There are no more events types left to add periodicFullSync=Periodic full sync removeConfirmTitle_other=Remove groups? diff --git a/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx b/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx index 8b31d3488b..176b0a6853 100644 --- a/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx +++ b/js/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx @@ -109,7 +109,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => { ); const [togglePublicKeyDialog, PublicKeyDialog] = useConfirmDialog({ - titleKey: t("publicKeys").slice(0, -1), + titleKey: t("publicKey"), messageKey: publicKey, continueButtonLabel: "close", continueButtonVariant: ButtonVariant.primary, @@ -204,7 +204,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => { variant="secondary" id="kc-public-key" > - {t("publicKeys").slice(0, -1)} + {t("publicKey")} ); } else if (type === "RSA") { @@ -218,7 +218,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => { variant="secondary" id={publicKey} > - {t("publicKeys").slice(0, -1)} + {t("publicKey")} ); } else return "";