|
|
@ -3,6 +3,7 @@ import { |
|
|
|
FC, |
|
|
|
FC, |
|
|
|
FormEventHandler, |
|
|
|
FormEventHandler, |
|
|
|
ReactElement, |
|
|
|
ReactElement, |
|
|
|
|
|
|
|
ReactNode, |
|
|
|
useMemo, |
|
|
|
useMemo, |
|
|
|
useRef, |
|
|
|
useRef, |
|
|
|
useState, |
|
|
|
useState, |
|
|
@ -267,9 +268,28 @@ const ManageFencePanel: FC = () => { |
|
|
|
<FlexBox row> |
|
|
|
<FlexBox row> |
|
|
|
<BodyText>{fenceName}</BodyText> |
|
|
|
<BodyText>{fenceName}</BodyText> |
|
|
|
<BodyText> |
|
|
|
<BodyText> |
|
|
|
{Object.entries(fenceParameters).reduce<string>( |
|
|
|
{Object.entries(fenceParameters).reduce<ReactNode>( |
|
|
|
(previous, [parameterId, parameterValue]) => |
|
|
|
(previous, [parameterId, parameterValue]) => { |
|
|
|
`${previous} ${parameterId}="${parameterValue}"`, |
|
|
|
let current: ReactNode = <>{parameterId}="</>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
current = /passw/i.test(parameterId) ? ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
{current} |
|
|
|
|
|
|
|
<SensitiveText inline>{parameterValue}</SensitiveText> |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
) : ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
{current} |
|
|
|
|
|
|
|
{parameterValue} |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
<> |
|
|
|
|
|
|
|
{previous} {current}" |
|
|
|
|
|
|
|
</> |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
fenceAgent, |
|
|
|
fenceAgent, |
|
|
|
)} |
|
|
|
)} |
|
|
|
</BodyText> |
|
|
|
</BodyText> |
|
|
|