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 registerNodeManually=Register node manually
redirectURI=Redirect URI redirectURI=Redirect URI
publicKeys=Public keys publicKeys=Public keys
publicKey=Public key
emptyEventsInstructions=There are no more events types left to add emptyEventsInstructions=There are no more events types left to add
periodicFullSync=Periodic full sync periodicFullSync=Periodic full sync
removeConfirmTitle_other=Remove groups? removeConfirmTitle_other=Remove groups?

View file

@ -109,7 +109,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
); );
const [togglePublicKeyDialog, PublicKeyDialog] = useConfirmDialog({ const [togglePublicKeyDialog, PublicKeyDialog] = useConfirmDialog({
titleKey: t("publicKeys").slice(0, -1), titleKey: t("publicKey"),
messageKey: publicKey, messageKey: publicKey,
continueButtonLabel: "close", continueButtonLabel: "close",
continueButtonVariant: ButtonVariant.primary, continueButtonVariant: ButtonVariant.primary,
@ -204,7 +204,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
variant="secondary" variant="secondary"
id="kc-public-key" id="kc-public-key"
> >
{t("publicKeys").slice(0, -1)} {t("publicKey")}
</Button> </Button>
); );
} else if (type === "RSA") { } else if (type === "RSA") {
@ -218,7 +218,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
variant="secondary" variant="secondary"
id={publicKey} id={publicKey}
> >
{t("publicKeys").slice(0, -1)} {t("publicKey")}
</Button> </Button>
<Button <Button
onClick={() => { onClick={() => {
@ -243,7 +243,7 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
variant="secondary" variant="secondary"
id="kc-public-key" id="kc-public-key"
> >
{t("publicKeys").slice(0, -1)} {t("publicKey")}
</Button> </Button>
); );
} else return ""; } else return "";