Added "use" column and fixed boolean check (#4227)

This commit is contained in:
Erik Jan de Wit 2023-01-19 15:33:47 +01:00 committed by GitHub
parent 2d4ba721b8
commit ae5b8ac525
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View file

@ -89,6 +89,7 @@
"keyPassword": "Key password", "keyPassword": "Key password",
"providers": "Providers", "providers": "Providers",
"algorithm": "Algorithm", "algorithm": "Algorithm",
"use": "Use",
"aesGenerated": "aes-generated", "aesGenerated": "aes-generated",
"ecdsaGenerated": "ecdsca-generated", "ecdsaGenerated": "ecdsca-generated",
"hmacGenerated": "hmac-generated", "hmacGenerated": "hmac-generated",

View file

@ -35,7 +35,9 @@ export const BooleanComponent = ({
isDisabled={isDisabled} isDisabled={isDisabled}
label={t("common:on")} label={t("common:on")}
labelOff={t("common:off")} labelOff={t("common:off")}
isChecked={value === "true" || value === true} isChecked={
value === "true" || value === true || value[0] === "true"
}
onChange={(value) => onChange("" + value)} onChange={(value) => onChange("" + value)}
data-testid={name} data-testid={name}
aria-label={t(label!)} aria-label={t(label!)}

View file

@ -212,6 +212,12 @@ export const KeysListTab = ({ realmComponents }: KeysListTabProps) => {
cellFormatters: [emptyFormatter()], cellFormatters: [emptyFormatter()],
transforms: [cellWidth(10)], transforms: [cellWidth(10)],
}, },
{
name: "use",
displayKey: "realm-settings:use",
cellFormatters: [emptyFormatter()],
transforms: [cellWidth(10)],
},
{ {
name: "provider", name: "provider",
displayKey: "realm-settings:provider", displayKey: "realm-settings:provider",