mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-07-29 01:52:51 +00:00
show gateway/connect but greyed out in webUI
This commit is contained in:
@@ -489,7 +489,8 @@ const Customizations = () => {
|
||||
</MenuItem>
|
||||
{devices.devices.map(
|
||||
(device: Device) =>
|
||||
device.id < 90 && (
|
||||
device.id < 90 &&
|
||||
device.e !== 0 && (
|
||||
<MenuItem key={device.id} value={device.id}>
|
||||
{device.n} ({device.tn})
|
||||
</MenuItem>
|
||||
|
||||
@@ -558,16 +558,26 @@ const Devices = memo(() => {
|
||||
<CircularProgress sx={{ margin: 1 }} size={18} />
|
||||
)}
|
||||
{tableList.map((device: Device) => (
|
||||
<Row key={device.id} item={device}>
|
||||
<Row key={device.id} item={device} disabled={device.e === 0}>
|
||||
<Cell>
|
||||
<DeviceIcon type_id={device.t} />
|
||||
|
||||
{device.n}
|
||||
<span style={{ color: 'lightblue' }}>
|
||||
({device.e})
|
||||
<span style={{ color: device.e === 0 ? 'grey' : 'white' }}>
|
||||
{device.n}
|
||||
</span>
|
||||
{device.e !== 0 && (
|
||||
<span style={{ color: 'lightblue' }}>
|
||||
({device.e})
|
||||
</span>
|
||||
)}
|
||||
</Cell>
|
||||
<Cell stiff>
|
||||
<ButtonTooltip
|
||||
title={`DeviceID: 0x${('00' + device.d.toString(16).toUpperCase()).slice(-2)}, ProductID: ${device.p}`}
|
||||
>
|
||||
<span>{device.tn}</span>
|
||||
</ButtonTooltip>
|
||||
</Cell>
|
||||
<Cell stiff>{device.tn}</Cell>
|
||||
</Row>
|
||||
))}
|
||||
</Body>
|
||||
|
||||
Reference in New Issue
Block a user