mirror of
https://github.com/meshtastic/web.git
synced 2026-02-01 11:21:48 -05:00
disable serial port button if already open
This commit is contained in:
@@ -51,6 +51,7 @@ export const Serial = (): JSX.Element => {
|
||||
{serialPorts.map((port, index) => (
|
||||
<Button
|
||||
key={index}
|
||||
disabled={!port.readable}
|
||||
onClick={() => {
|
||||
void onConnect(port);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user