From 39852470cc75f00bd0b59879fd1eb9cdcd6c0302 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 27 Jan 2025 22:13:47 -0500 Subject: [PATCH] Update API key list UI --- app/scenes/Settings/components/ApiKeyListItem.tsx | 11 +++++++++-- shared/i18n/locales/en_US/translation.json | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/scenes/Settings/components/ApiKeyListItem.tsx b/app/scenes/Settings/components/ApiKeyListItem.tsx index 4146ad2159..1f450eaf86 100644 --- a/app/scenes/Settings/components/ApiKeyListItem.tsx +++ b/app/scenes/Settings/components/ApiKeyListItem.tsx @@ -48,8 +48,15 @@ const ApiKeyListItem = ({ apiKey }: Props) => { {apiKey.scope && <> · } {apiKey.scope && ( - - {apiKey.scope} + ( + <> + {s} +
+ + ))} + > + {t("Restricted scope")}
)} diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 408aa282db..475905538e 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -829,6 +829,7 @@ "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "Restricted scope": "Restricted scope", "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking",