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",
|
"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",
|
||||||
|
|
|
@ -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!)}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue