mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
changed field order
This commit is contained in:
@@ -94,16 +94,6 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('keep_alive')}
|
onChange={handleValueChange('keep_alive')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
checked={data.clean_session}
|
|
||||||
onChange={handleValueChange('clean_session')}
|
|
||||||
value="clean_session"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
label="Clean Session?"
|
|
||||||
/>
|
|
||||||
<TextValidator
|
<TextValidator
|
||||||
validators={['required', 'isNumber', 'minNumber:1', 'maxNumber:65535']}
|
validators={['required', 'isNumber', 'minNumber:1', 'maxNumber:65535']}
|
||||||
errorMessages={['Max topic length is required', "Must be a number", "Must be greater than 0", "Max value is 65535"]}
|
errorMessages={['Max topic length is required', "Must be a number", "Must be greater than 0", "Max value is 65535"]}
|
||||||
@@ -116,16 +106,6 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('max_topic_length')}
|
onChange={handleValueChange('max_topic_length')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
checked={data.system_heartbeat}
|
|
||||||
onChange={handleValueChange('system_heartbeat')}
|
|
||||||
value="system_heartbeat"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
label="Heartbeat"
|
|
||||||
/>
|
|
||||||
<SelectValidator name="mqtt_format"
|
<SelectValidator name="mqtt_format"
|
||||||
label="Format"
|
label="Format"
|
||||||
value={data.mqtt_format}
|
value={data.mqtt_format}
|
||||||
@@ -149,6 +129,16 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
<MenuItem value={1}>1</MenuItem>
|
<MenuItem value={1}>1</MenuItem>
|
||||||
<MenuItem value={2}>2</MenuItem>
|
<MenuItem value={2}>2</MenuItem>
|
||||||
</SelectValidator>
|
</SelectValidator>
|
||||||
|
<BlockFormControlLabel
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={data.clean_session}
|
||||||
|
onChange={handleValueChange('clean_session')}
|
||||||
|
value="clean_session"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label="Clean Session?"
|
||||||
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
@@ -159,6 +149,17 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
}
|
}
|
||||||
label="Retain Flag"
|
label="Retain Flag"
|
||||||
/>
|
/>
|
||||||
|
<BlockFormControlLabel
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={data.system_heartbeat}
|
||||||
|
onChange={handleValueChange('system_heartbeat')}
|
||||||
|
value="system_heartbeat"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label="Heartbeat"
|
||||||
|
/>
|
||||||
|
<br></br>
|
||||||
<Typography variant="h6" color="primary" >
|
<Typography variant="h6" color="primary" >
|
||||||
Publish Intervals
|
Publish Intervals
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user