Fix collector warm-up and add enable toggle to MachineEditor
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
|||||||
Grid,
|
Grid,
|
||||||
Stack,
|
Stack,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
|
Switch,
|
||||||
Tab,
|
Tab,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
@@ -185,12 +186,20 @@ function MachineEditor({
|
|||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={{ xs: 12, md: 3 }}>
|
<Grid size={{ xs: 12, md: 3 }}>
|
||||||
<TextField
|
<FormControlLabel
|
||||||
fullWidth
|
control={
|
||||||
size="small"
|
<Switch
|
||||||
label="Enabled"
|
checked={draft.enabled}
|
||||||
value={draft.enabled ? "Yes" : "No"}
|
onChange={(e) =>
|
||||||
disabled
|
setDraft((current) => ({
|
||||||
|
...current,
|
||||||
|
enabled: e.target.checked,
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label={draft.enabled ? "Enabled" : "Disabled"}
|
||||||
|
sx={{ ml: 0 }}
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={{ xs: 12 }}>
|
<Grid size={{ xs: 12 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user