From 94fd5f9f6e8767014a1204794f790fbeaa5e821d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 22 Sep 2020 22:31:38 -0700 Subject: Add device disable checkbox --- modern/src/DevicePage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 7d20be39..da41e37a 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 = () => { ))} + setItem({...item, disabled: event.target.checked})} />} + label={t('sharedDisabled')} /> -- cgit v1.2.3