fix(Connect): disable the address and TLS inputs when connecting
This commit is contained in:
@@ -63,6 +63,7 @@ export const HTTP = ({ closeDialog }: TabElementProps): JSX.Element => {
|
|||||||
// label="IP Address/Hostname"
|
// label="IP Address/Hostname"
|
||||||
prefix={tlsEnabled ? "https://" : "http://"}
|
prefix={tlsEnabled ? "https://" : "http://"}
|
||||||
placeholder="000.000.000.000 / meshtastic.local"
|
placeholder="000.000.000.000 / meshtastic.local"
|
||||||
|
disabled={connectionInProgress}
|
||||||
{...register("ip")}
|
{...register("ip")}
|
||||||
/>
|
/>
|
||||||
<Controller
|
<Controller
|
||||||
@@ -74,7 +75,7 @@ export const HTTP = ({ closeDialog }: TabElementProps): JSX.Element => {
|
|||||||
<Switch
|
<Switch
|
||||||
// label="Use TLS"
|
// label="Use TLS"
|
||||||
// description="Description"
|
// description="Description"
|
||||||
disabled={location.protocol === "https:"}
|
disabled={location.protocol === "https:" || connectionInProgress}
|
||||||
checked={value}
|
checked={value}
|
||||||
{...rest}
|
{...rest}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user