diff --git a/apps/admin-ui/public/resources/en/realm-settings.json b/apps/admin-ui/public/resources/en/realm-settings.json index 3b7d166b23..64953f1e93 100644 --- a/apps/admin-ui/public/resources/en/realm-settings.json +++ b/apps/admin-ui/public/resources/en/realm-settings.json @@ -89,6 +89,7 @@ "keyPassword": "Key password", "providers": "Providers", "algorithm": "Algorithm", + "use": "Use", "aesGenerated": "aes-generated", "ecdsaGenerated": "ecdsca-generated", "hmacGenerated": "hmac-generated", diff --git a/apps/admin-ui/src/components/dynamic/BooleanComponent.tsx b/apps/admin-ui/src/components/dynamic/BooleanComponent.tsx index 382e4835f3..6301b2dd5e 100644 --- a/apps/admin-ui/src/components/dynamic/BooleanComponent.tsx +++ b/apps/admin-ui/src/components/dynamic/BooleanComponent.tsx @@ -35,7 +35,9 @@ export const BooleanComponent = ({ isDisabled={isDisabled} label={t("common:on")} labelOff={t("common:off")} - isChecked={value === "true" || value === true} + isChecked={ + value === "true" || value === true || value[0] === "true" + } onChange={(value) => onChange("" + value)} data-testid={name} aria-label={t(label!)} diff --git a/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx b/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx index aa9ee08d6f..5c17ccc86e 100644 --- a/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx +++ b/apps/admin-ui/src/realm-settings/keys/KeysListTab.tsx @@ -212,6 +212,12 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => { cellFormatters: [emptyFormatter()], transforms: [cellWidth(10)], }, + { + name: "use", + displayKey: "realm-settings:use", + cellFormatters: [emptyFormatter()], + transforms: [cellWidth(10)], + }, { name: "provider", displayKey: "realm-settings:provider",