CEC-4572 tweak digital twin display and form (#362)

* CEC-4572 tweak form

* update snapshots

* Clean up

* Hide DTC tab
This commit is contained in:
John Wu
2023-06-15 14:39:21 -07:00
committed by GitHub
parent 06867ea77f
commit a5c29a4721
8 changed files with 300 additions and 326 deletions

View File

@@ -337,6 +337,22 @@ const MainForm = () => {
fullWidth
inputRef={infoSourceEl}
/>
<TextField
id="tag"
name="tags"
label='Tags (comma separated, alphanumeric and - only)'
InputLabelProps={{
shrink: true
}}
defaultValue=""
variant="outlined"
margin="normal"
inputProps={{
maxLength: "1024",
}}
fullWidth
inputRef={tagsEl}
/>
<FormLabel id="demo-row-radio-buttons-group-label">Log Level</FormLabel>
<RadioGroup
row
@@ -384,12 +400,6 @@ const MainForm = () => {
disabled={!canbusEnabled}
/>
} label="Data Logger Enabled" />
<FormControlLabel control={
<Checkbox
checked={dtcEnabled}
onChange={onDtcEnabledChange}
/>
} label="DTC Enabled" />
</FormGroup>
<TextField
id="max_disk_buffer_size"
@@ -407,11 +417,17 @@ const MainForm = () => {
required
fullWidth
/>
<FormControlLabel control={
<Checkbox
checked={dtcEnabled}
onChange={onDtcEnabledChange}
/>
} label="DTC Enabled" />
{showDebugMask && (
<TextField
id="debug_mask"
name="debug_mask"
label="DebugMask"
label="Debug Mask"
InputLabelProps={{
shrink: true
}}
@@ -425,22 +441,6 @@ const MainForm = () => {
inputRef={debugMaskEl}
/>
)}
<TextField
id="tag"
name="tags"
label='Tags (comma separated, alphanumeric and - only)'
InputLabelProps={{
shrink: true
}}
defaultValue=""
variant="outlined"
margin="normal"
inputProps={{
maxLength: "1024",
}}
fullWidth
inputRef={tagsEl}
/>
<Button
type="submit"
disabled={busy}