Added "use" column and fixed boolean check (#4227)
This commit is contained in:
parent
2d4ba721b8
commit
ae5b8ac525
3 changed files with 10 additions and 1 deletions
|
@ -89,6 +89,7 @@
|
|||
"keyPassword": "Key password",
|
||||
"providers": "Providers",
|
||||
"algorithm": "Algorithm",
|
||||
"use": "Use",
|
||||
"aesGenerated": "aes-generated",
|
||||
"ecdsaGenerated": "ecdsca-generated",
|
||||
"hmacGenerated": "hmac-generated",
|
||||
|
|
|
@ -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!)}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue