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