diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-15 13:04:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-15 13:04:00 -0700 |
commit | 6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc (patch) | |
tree | 8712dcf947f4e6fa0795faa4667e9bb787775d72 /modern/src/settings/ServerPage.js | |
parent | 5faf345b841da9af97a45cc057a58b63b2379388 (diff) | |
download | trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.gz trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.bz2 trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.zip |
Update known attributes
Diffstat (limited to 'modern/src/settings/ServerPage.js')
-rw-r--r-- | modern/src/settings/ServerPage.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/settings/ServerPage.js b/modern/src/settings/ServerPage.js index 8943252e..5fdba47b 100644 --- a/modern/src/settings/ServerPage.js +++ b/modern/src/settings/ServerPage.js @@ -9,12 +9,12 @@ import { useHistory } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import { sessionActions } from '../store'; import EditAttributesView from './components/EditAttributesView'; -import useDeviceAttributes from '../common/attributes/useDeviceAttributes'; -import useUserAttributes from '../common/attributes/useUserAttributes'; import { useTranslation } from '../common/components/LocalizationProvider'; import SelectField from '../common/components/SelectField'; import PageLayout from '../common/components/PageLayout'; import SettingsMenu from './components/SettingsMenu'; +import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes'; +import useCommonUserAttributes from '../common/attributes/useCommonUserAttributes'; const useStyles = makeStyles((theme) => ({ container: { @@ -38,8 +38,8 @@ const ServerPage = () => { const dispatch = useDispatch(); const t = useTranslation(); - const userAttributes = useUserAttributes(t); - const deviceAttributes = useDeviceAttributes(t); + const commonUserAttributes = useCommonUserAttributes(t); + const commonDeviceAttributes = useCommonDeviceAttributes(t); const original = useSelector((state) => state.session.server); const [item, setItem] = useState({ ...original }); @@ -218,7 +218,7 @@ const ServerPage = () => { <EditAttributesView attributes={item.attributes} setAttributes={(attributes) => setItem({ ...item, attributes })} - definitions={{ ...userAttributes, ...deviceAttributes }} + definitions={{ ...commonUserAttributes, ...commonDeviceAttributes }} /> </AccordionDetails> </Accordion> |