Update KeysListTab.tsx (#29337)

* Update KeysListTab.tsx

Signed-off-by: 秉虎 <s96016641@gmail.com>

* added missing singular key

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: 秉虎 <s96016641@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
秉虎 2024-05-21 19:56:57 +08:00 committed by GitHub
parent 65fcd44fe1
commit 82ae047231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -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")}
</Button>
);
} else if (type === "RSA") {
@ -218,7 +218,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
variant="secondary"
id={publicKey}
>
{t("publicKeys").slice(0, -1)}
{t("publicKey")}
</Button>
<Button
onClick={() => {
@ -243,7 +243,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
variant="secondary"
id="kc-public-key"
>
{t("publicKeys").slice(0, -1)}
{t("publicKey")}
</Button>
);
} else return "";