diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-22 22:31:38 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-22 22:31:38 -0700 |
commit | 94fd5f9f6e8767014a1204794f790fbeaa5e821d (patch) | |
tree | cf83799a7748b8b5813b7719d9d0772ade06cf22 | |
parent | fa2edb19117115c4d92a991ee33f0a4c9966945b (diff) | |
download | etbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.tar.gz etbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.tar.bz2 etbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.zip |
Add device disable checkbox
-rw-r--r-- | modern/src/DevicePage.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 7d20be3..da41e37 100644 --- a/modern/src/DevicePage.js +++ b/modern/src/DevicePage.js @@ -3,7 +3,7 @@ import TextField from '@material-ui/core/TextField'; import t from './common/localization'; import EditItemView from './EditItemView'; -import { Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography, FormControl, InputLabel, Select } from '@material-ui/core'; +import { Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography, FormControl, InputLabel, Select, FormControlLabel, Checkbox } from '@material-ui/core'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import { useEffectAsync } from './reactHelper'; @@ -125,6 +125,9 @@ const DevicePage = () => { ))} </Select> </FormControl> + <FormControlLabel + control={<Checkbox checked={item.disabled} onChange={event => setItem({...item, disabled: event.target.checked})} />} + label={t('sharedDisabled')} /> </AccordionDetails> </Accordion> </> |