mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-24 17:52:33 +00:00
Only switch if we are actually connected
This commit is contained in:
@@ -336,14 +336,14 @@ export default function SshClient({
|
|||||||
|
|
||||||
<Button
|
<Button
|
||||||
onClick={connect}
|
onClick={connect}
|
||||||
|
loading={connecting}
|
||||||
disabled={
|
disabled={
|
||||||
connecting ||
|
|
||||||
!form.username ||
|
!form.username ||
|
||||||
(!form.password && !form.privateKey)
|
(!form.password && !form.privateKey)
|
||||||
}
|
}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
>
|
>
|
||||||
{connecting ? "Connecting..." : "Connect"}
|
Connect
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user