aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-15 14:49:09 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-15 14:49:09 -0700
commiteb364d8726f6e79cede10b168ea2ae31bbbe696e (patch)
treec55dcb6f1088ac2d10e264e332cb22efed58c091 /modern/src/common
parent4aa5da9a669c58dbe43600e576bcfc0346c121a0 (diff)
downloadtrackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.tar.gz
trackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.tar.bz2
trackermap-web-eb364d8726f6e79cede10b168ea2ae31bbbe696e.zip
New server attributes
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/attributes/useServerAttributes.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useServerAttributes.js b/modern/src/common/attributes/useServerAttributes.js
index ba49e44d..76d5a157 100644
--- a/modern/src/common/attributes/useServerAttributes.js
+++ b/modern/src/common/attributes/useServerAttributes.js
@@ -1,6 +1,24 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
+ title: {
+ name: t('serverName'),
+ type: 'string',
+ },
+ description: {
+ name: t('serverDescription'),
+ type: 'string',
+ },
+ colorPrimary: {
+ name: t('serverColorPrimary'),
+ type: 'string',
+ subtype: 'color',
+ },
+ colorSecondary: {
+ name: t('serverColorSecondary'),
+ type: 'string',
+ subtype: 'color',
+ },
'ui.disableLoginLanguage': {
name: t('attributeUiDisableLoginLanguage'),
type: 'boolean',