diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-02 16:54:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-02 16:54:42 -0700 |
commit | 44fd230a4c0043a6e89a793bcf333072a01441a6 (patch) | |
tree | c4681bf322e2d4e5cf1c7258ada2b3c985468471 /modern/src/common/attributes | |
parent | 8f3b27e86ac9b9a94bdd5319501ecb7e056ec595 (diff) | |
download | trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.tar.gz trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.tar.bz2 trackermap-web-44fd230a4c0043a6e89a793bcf333072a01441a6.zip |
Option to hide login language (fix #654)
Diffstat (limited to 'modern/src/common/attributes')
-rw-r--r-- | modern/src/common/attributes/useCommonUserAttributes.js | 4 | ||||
-rw-r--r-- | modern/src/common/attributes/useServerAttributes.js | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/modern/src/common/attributes/useCommonUserAttributes.js b/modern/src/common/attributes/useCommonUserAttributes.js index 1409c5ac..ddd5d970 100644 --- a/modern/src/common/attributes/useCommonUserAttributes.js +++ b/modern/src/common/attributes/useCommonUserAttributes.js @@ -69,8 +69,4 @@ export default (t) => useMemo(() => ({ name: t('attributeWebMaxZoom'), type: 'number', }, - /* 'ui.hidePositionAttributes': { - name: t('attributeUiHidePositionAttributes'), - type: 'string', - }, */ }), [t]); diff --git a/modern/src/common/attributes/useServerAttributes.js b/modern/src/common/attributes/useServerAttributes.js new file mode 100644 index 00000000..ba49e44d --- /dev/null +++ b/modern/src/common/attributes/useServerAttributes.js @@ -0,0 +1,8 @@ +import { useMemo } from 'react'; + +export default (t) => useMemo(() => ({ + 'ui.disableLoginLanguage': { + name: t('attributeUiDisableLoginLanguage'), + type: 'boolean', + }, +}), [t]); |