aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/GroupPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-15 13:04:00 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-15 13:04:00 -0700
commit6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc (patch)
tree8712dcf947f4e6fa0795faa4667e9bb787775d72 /modern/src/settings/GroupPage.js
parent5faf345b841da9af97a45cc057a58b63b2379388 (diff)
downloadtrackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.gz
trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.bz2
trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.zip
Update known attributes
Diffstat (limited to 'modern/src/settings/GroupPage.js')
-rw-r--r--modern/src/settings/GroupPage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/modern/src/settings/GroupPage.js b/modern/src/settings/GroupPage.js
index f56a2fd3..3d4769f3 100644
--- a/modern/src/settings/GroupPage.js
+++ b/modern/src/settings/GroupPage.js
@@ -7,10 +7,11 @@ import {
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import EditItemView from './components/EditItemView';
import EditAttributesView from './components/EditAttributesView';
-import useDeviceAttributes from '../common/attributes/useDeviceAttributes';
import SelectField from '../common/components/SelectField';
import { useTranslation } from '../common/components/LocalizationProvider';
import SettingsMenu from './components/SettingsMenu';
+import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes';
+import useGroupAttributes from '../common/attributes/useGroupAttributes';
const useStyles = makeStyles(() => ({
details: {
@@ -22,7 +23,8 @@ const GroupPage = () => {
const classes = useStyles();
const t = useTranslation();
- const deviceAttributes = useDeviceAttributes(t);
+ const commonDeviceAttributes = useCommonDeviceAttributes(t);
+ const groupAttributes = useGroupAttributes(t);
const [item, setItem] = useState();
@@ -82,7 +84,7 @@ const GroupPage = () => {
<EditAttributesView
attributes={item.attributes}
setAttributes={(attributes) => setItem({ ...item, attributes })}
- definitions={deviceAttributes}
+ definitions={{ ...commonDeviceAttributes, ...groupAttributes }}
/>
</AccordionDetails>
</Accordion>