aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-25 07:31:00 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-25 07:31:00 -0700
commitfe1220344f008897f2f463756e555ea73ba43fcb (patch)
treed3b3e0b4c27de349d91b68462877f30f0810ef27 /modern
parente169da23db5357de3ca6d9cbb38051816a8878f6 (diff)
downloadtrackermap-web-fe1220344f008897f2f463756e555ea73ba43fcb.tar.gz
trackermap-web-fe1220344f008897f2f463756e555ea73ba43fcb.tar.bz2
trackermap-web-fe1220344f008897f2f463756e555ea73ba43fcb.zip
Add card attribute
Diffstat (limited to 'modern')
-rw-r--r--modern/src/common/attributes/usePositionAttributes.js4
-rw-r--r--modern/src/resources/l10n/en.json1
2 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js
index a3278b2a..9e889b09 100644
--- a/modern/src/common/attributes/usePositionAttributes.js
+++ b/modern/src/common/attributes/usePositionAttributes.js
@@ -340,6 +340,10 @@ export default (t) => useMemo(() => ({
name: t('positionDriverUniqueId'),
type: 'string',
},
+ card: {
+ name: t('positionCard'),
+ type: 'string',
+ },
color: {
name: t('attributeColor'),
type: 'string',
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index 2400ecf9..82707603 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -292,6 +292,7 @@
"positionObdSpeed": "OBD Speed",
"positionObdOdometer": "OBD Odometer",
"positionDriverUniqueId": "Driver Unique Id",
+ "positionCard": "Card",
"positionImage": "Image",
"positionVideo": "Video",
"positionAudio": "Audio",