aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-22 22:31:38 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-22 22:31:38 -0700
commit94fd5f9f6e8767014a1204794f790fbeaa5e821d (patch)
treecf83799a7748b8b5813b7719d9d0772ade06cf22 /modern
parentfa2edb19117115c4d92a991ee33f0a4c9966945b (diff)
downloadetbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.tar.gz
etbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.tar.bz2
etbsa-traccar-web-94fd5f9f6e8767014a1204794f790fbeaa5e821d.zip
Add device disable checkbox
Diffstat (limited to 'modern')
-rw-r--r--modern/src/DevicePage.js5
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>
</>