aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-06 15:02:43 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-06 15:02:43 -0700
commit4e84fa64bfe7d92cd2eff6a0411140953dc3fdb9 (patch)
tree84bdca2759dde6f0cc9fea16cd52fd20b5e52b52 /modern/src/attributes
parent4810bef487c36c263326ecd7f4626a6354ecfdf5 (diff)
downloadtrackermap-web-4e84fa64bfe7d92cd2eff6a0411140953dc3fdb9.tar.gz
trackermap-web-4e84fa64bfe7d92cd2eff6a0411140953dc3fdb9.tar.bz2
trackermap-web-4e84fa64bfe7d92cd2eff6a0411140953dc3fdb9.zip
Add timezone attribute
Diffstat (limited to 'modern/src/attributes')
-rw-r--r--modern/src/attributes/EditAttributesView.js2
-rw-r--r--modern/src/attributes/useUserAttributes.js8
2 files changed, 3 insertions, 7 deletions
diff --git a/modern/src/attributes/EditAttributesView.js b/modern/src/attributes/EditAttributesView.js
index af90a73a..61d7ad3c 100644
--- a/modern/src/attributes/EditAttributesView.js
+++ b/modern/src/attributes/EditAttributesView.js
@@ -105,7 +105,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => {
const convertToList = (attributes) => {
const booleanList = [];
const otherList = [];
- const excludeAttributes = ['speedUnit', 'distanceUnit', 'volumeUnit'];
+ const excludeAttributes = ['speedUnit', 'distanceUnit', 'volumeUnit', 'timezone'];
Object.keys(attributes || []).filter((key) => !excludeAttributes.includes(key)).forEach((key) => {
const value = attributes[key];
const type = getAttributeType(value);
diff --git a/modern/src/attributes/useUserAttributes.js b/modern/src/attributes/useUserAttributes.js
index 3c5ea019..9275596b 100644
--- a/modern/src/attributes/useUserAttributes.js
+++ b/modern/src/attributes/useUserAttributes.js
@@ -5,7 +5,7 @@ export default (t) => useMemo(() => ({
name: t('attributeNotificationTokens'),
type: 'string',
},
- 'web.liveRouteLength': {
+ /*'web.liveRouteLength': {
name: t('attributeWebLiveRouteLength'),
type: 'number',
},
@@ -44,9 +44,5 @@ export default (t) => useMemo(() => ({
'ui.hidePositionAttributes': {
name: t('attributeUiHidePositionAttributes'),
type: 'string',
- },
- timezone: {
- name: t('sharedTimezone'),
- type: 'string',
- },
+ },*/
}), [t]);