aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useServerAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-02 16:54:42 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-02 16:54:42 -0700
commit44fd230a4c0043a6e89a793bcf333072a01441a6 (patch)
treec4681bf322e2d4e5cf1c7258ada2b3c985468471 /modern/src/common/attributes/useServerAttributes.js
parent8f3b27e86ac9b9a94bdd5319501ecb7e056ec595 (diff)
downloadtrackermap-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/useServerAttributes.js')
-rw-r--r--modern/src/common/attributes/useServerAttributes.js8
1 files changed, 8 insertions, 0 deletions
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]);