mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +03:00
add back uom and factor inputs for some analogsensor types
This commit is contained in:
@@ -224,7 +224,10 @@ const SensorsAnalogDialog = ({
|
||||
{analogTypeMenuItems}
|
||||
</ValidatedTextField>
|
||||
</Grid>
|
||||
{(isCounterOrRate || isFreqType) && (
|
||||
{(isCounterOrRate ||
|
||||
isFreqType ||
|
||||
editItem.t === AnalogType.ADC ||
|
||||
editItem.t === AnalogType.TIMER) && (
|
||||
<Grid>
|
||||
<ValidatedTextField
|
||||
name="u"
|
||||
@@ -310,7 +313,10 @@ const SensorsAnalogDialog = ({
|
||||
/>
|
||||
</Grid>
|
||||
)}
|
||||
{isCounterOrRate && (
|
||||
{(isCounterOrRate ||
|
||||
isFreqType ||
|
||||
editItem.t === AnalogType.ADC ||
|
||||
editItem.t === AnalogType.TIMER) && (
|
||||
<Grid>
|
||||
<ValidatedTextField
|
||||
name="f"
|
||||
|
||||
Reference in New Issue
Block a user