From 44fd230a4c0043a6e89a793bcf333072a01441a6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 2 Jul 2022 16:54:42 -0700 Subject: Option to hide login language (fix #654) --- modern/src/common/attributes/useCommonUserAttributes.js | 4 ---- modern/src/common/attributes/useServerAttributes.js | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 modern/src/common/attributes/useServerAttributes.js (limited to 'modern/src/common/attributes') 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]); -- cgit v1.2.3