Merge pull request #1376 from proddy/dev2

Dev2
This commit is contained in:
Proddy
2023-10-31 22:07:48 +01:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ const DashboardDevicesDialog = ({
{editItem.l ? ( {editItem.l ? (
<TextField <TextField
name="v" name="v"
label={LL.VALUE(0)} label={LL.VALUE(1)}
value={editItem.v} value={editItem.v}
disabled={!writeable} disabled={!writeable}
autoFocus autoFocus
@@ -132,7 +132,7 @@ const DashboardDevicesDialog = ({
<ValidatedTextField <ValidatedTextField
fieldErrors={fieldErrors} fieldErrors={fieldErrors}
name="v" name="v"
label={LL.VALUE(0)} label={LL.VALUE(1)}
value={Math.round(editItem.v * 10) / 10} value={Math.round(editItem.v * 10) / 10}
autoFocus autoFocus
disabled={!writeable} disabled={!writeable}
@@ -148,7 +148,7 @@ const DashboardDevicesDialog = ({
<ValidatedTextField <ValidatedTextField
fieldErrors={fieldErrors} fieldErrors={fieldErrors}
name="v" name="v"
label={LL.VALUE(0)} label={LL.VALUE(1)}
value={editItem.v} value={editItem.v}
disabled={!writeable} disabled={!writeable}
autoFocus autoFocus

View File

@@ -183,7 +183,7 @@ const DashboardSensorsAnalogDialog = ({
<Grid item xs={4}> <Grid item xs={4}>
<TextField <TextField
name="o" name="o"
label={LL.VALUE(0)} label={LL.VALUE(1)}
value={numberValue(editItem.o)} value={numberValue(editItem.o)}
fullWidth fullWidth
type="number" type="number"
@@ -197,7 +197,7 @@ const DashboardSensorsAnalogDialog = ({
<Grid item xs={4}> <Grid item xs={4}>
<TextField <TextField
name="o" name="o"
label={LL.VALUE(0)} label={LL.VALUE(1)}
value={numberValue(editItem.o)} value={numberValue(editItem.o)}
fullWidth fullWidth
type="number" type="number"

View File

@@ -239,6 +239,7 @@ type BoardProfiles = {
export const BOARD_PROFILES: BoardProfiles = { export const BOARD_PROFILES: BoardProfiles = {
S32: 'BBQKees Gateway S32', S32: 'BBQKees Gateway S32',
S32S3: 'BBQKees Gateway S3',
E32: 'BBQKees Gateway E32', E32: 'BBQKees Gateway E32',
E32V2: 'BBQKees Gateway E32 V2', E32V2: 'BBQKees Gateway E32 V2',
NODEMCU: 'NodeMCU 32S', NODEMCU: 'NodeMCU 32S',
@@ -248,8 +249,7 @@ export const BOARD_PROFILES: BoardProfiles = {
OLIMEXPOE: 'Olimex ESP32-POE', OLIMEXPOE: 'Olimex ESP32-POE',
C3MINI: 'Wemos C3 Mini', C3MINI: 'Wemos C3 Mini',
S2MINI: 'Wemos S2 Mini', S2MINI: 'Wemos S2 Mini',
S3MINI: 'Liligo S3', S3MINI: 'Liligo S3'
S32S3: 'BBQKees Gateway S3'
}; };
export interface BoardProfile { export interface BoardProfile {