mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 08:39:09 +03:00
show gpio for system sensors
This commit is contained in:
@@ -158,6 +158,15 @@ const SensorsAnalogDialog = ({
|
|||||||
<DialogTitle>{dialogTitle}</DialogTitle>
|
<DialogTitle>{dialogTitle}</DialogTitle>
|
||||||
<DialogContent dividers>
|
<DialogContent dividers>
|
||||||
<Grid container spacing={2}>
|
<Grid container spacing={2}>
|
||||||
|
{editItem.s ? (
|
||||||
|
<TextField
|
||||||
|
name="g"
|
||||||
|
label="GPIO"
|
||||||
|
value={editItem.g}
|
||||||
|
sx={{ width: '8ch' }}
|
||||||
|
disabled={true}
|
||||||
|
></TextField>
|
||||||
|
) : (
|
||||||
<ValidatedTextField
|
<ValidatedTextField
|
||||||
name="g"
|
name="g"
|
||||||
label="GPIO"
|
label="GPIO"
|
||||||
@@ -173,6 +182,7 @@ const SensorsAnalogDialog = ({
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
))}
|
))}
|
||||||
</ValidatedTextField>
|
</ValidatedTextField>
|
||||||
|
)}
|
||||||
<Grid>
|
<Grid>
|
||||||
<ValidatedTextField
|
<ValidatedTextField
|
||||||
name="n"
|
name="n"
|
||||||
|
|||||||
Reference in New Issue
Block a user