Browse Source

bad merge on Security.tsx

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

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

@ -164,9 +164,12 @@ 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,
},
}, },
], ],
}, },
@ -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