formatting

This commit is contained in:
proddy
2021-07-19 16:44:53 +02:00
parent add09e5a1c
commit 37d001e7b5
3 changed files with 30 additions and 30 deletions

View File

@@ -365,7 +365,7 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
<br></br>
<Typography variant="h6" color="primary">
Options
General Options
</Typography>
{data.led_gpio !== 0 && (
@@ -390,7 +390,7 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
value="dallas_parasite"
/>
}
label="Enable Dallas parasite mode"
label="Use Dallas Sensor parasite power"
/>
)}
@@ -412,7 +412,17 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
value="low_clock"
/>
}
label="Low Clockrate (160MHz, changed on next reboot)"
label="Use lower CPU clock speed (only applied after restart)"
/>
<BlockFormControlLabel
control={
<Checkbox
checked={data.notoken_api}
onChange={handleValueChange('notoken_api')}
value="notoken_api"
/>
}
label="Bypass Access Token authorization on API calls"
/>
<Grid
container
@@ -445,19 +455,9 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
<br></br>
<Typography variant="h6" color="primary">
API and MQTT Options
Formatting Options
</Typography>
<BlockFormControlLabel
control={
<Checkbox
checked={data.notoken_api}
onChange={handleValueChange('notoken_api')}
value="notoken_api"
/>
}
label="Bypass Access Token authorization on API calls"
/>
<Grid
container
spacing={1}
@@ -498,14 +498,14 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
<Grid item xs={4}>
<SelectValidator
name="dallas_format"
label="Sensor Publishing"
label="Dallas Sensor Format"
value={data.dallas_format}
fullWidth
variant="outlined"
onChange={handleValueChange('dallas_format')}
margin="normal"
>
<MenuItem value={1}>by Sensor ID</MenuItem>
<MenuItem value={1}>by ID</MenuItem>
<MenuItem value={2}>by Number</MenuItem>
<MenuItem value={3}>by Name</MenuItem>
</SelectValidator>