Browse Source

bad merge on Security.tsx

pull/277/head
Hunter Thornsberry 2 years ago
parent
commit
b522113cd7
  1. 21
      src/components/PageComponents/Config/Security.tsx

21
src/components/PageComponents/Config/Security.tsx

@ -164,15 +164,18 @@ export const Security = (): JSX.Element => {
type: "text", type: "text",
name: "publicKey", name: "publicKey",
label: "Public Key", label: "Public Key",
disabled: true,
description: description:
"Sent out to other nodes on the mesh to allow them to compute a shared secret key", "Sent out to other nodes on the mesh to allow them to compute a shared secret key",
disabledBy: [{ fieldName: "always" }],
properties: {
value: publicKey,
},
}, },
], ],
}, },
{ {
label: "Admin Settings", label: "Admin Settings",
description: "Settings for Admin ", description: "Settings for Admin",
fields: [ fields: [
{ {
type: "toggle", type: "toggle",
@ -189,28 +192,16 @@ export const Security = (): JSX.Element => {
'If true, device is considered to be "managed" by a mesh administrator via admin messages', 'If true, device is considered to be "managed" by a mesh administrator via admin messages',
}, },
{ {
type: "passwordGenerator", type: "text",
name: "adminKey", name: "adminKey",
label: "Admin Key", label: "Admin Key",
description: description:
"The public key authorized to send admin messages to this node", "The public key authorized to send admin messages to this node",
validationText: adminKeyValidationText, validationText: adminKeyValidationText,
devicePSKBitCount: adminKeyBitCount,
inputChange: adminKeyInputChangeEvent, inputChange: adminKeyInputChangeEvent,
selectChange: adminKeySelectChangeEvent,
hide: !adminKeyVisible,
buttonClick: () =>
clickEvent(
setAdminKey,
adminKeyBitCount,
setAdminKeyValidationText,
),
disabledBy: [{ fieldName: "adminChannelEnabled" }], disabledBy: [{ fieldName: "adminChannelEnabled" }],
properties: { properties: {
value: adminKey, value: adminKey,
action: {
icon: adminKeyVisible ? EyeOff : Eye,
onClick: () => setAdminKeyVisible(!adminKeyVisible),
}, },
}, },
], ],

Loading…
Cancel
Save