diff options
author | Anton Tananaev <anton@traccar.org> | 2023-03-25 07:35:36 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-03-25 07:35:36 -0700 |
commit | e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b (patch) | |
tree | 88e66b7c573d61f4d539b2c26410c622e1aa5c71 | |
parent | fe1220344f008897f2f463756e555ea73ba43fcb (diff) | |
download | trackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.tar.gz trackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.tar.bz2 trackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.zip |
Add driving time
-rw-r--r-- | modern/src/common/attributes/usePositionAttributes.js | 5 | ||||
-rw-r--r-- | modern/src/resources/l10n/en.json | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js index 9e889b09..81497938 100644 --- a/modern/src/common/attributes/usePositionAttributes.js +++ b/modern/src/common/attributes/usePositionAttributes.js @@ -344,6 +344,11 @@ export default (t) => useMemo(() => ({ name: t('positionCard'), type: 'string', }, + drivingTime: { + name: t('positionDrivingTime'), + type: 'number', + dataType: 'hours', + }, color: { name: t('attributeColor'), type: 'string', diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index 82707603..33140133 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -291,6 +291,7 @@ "positionDtcs": "DTCs", "positionObdSpeed": "OBD Speed", "positionObdOdometer": "OBD Odometer", + "positionDrivingTime": "Driving Time", "positionDriverUniqueId": "Driver Unique Id", "positionCard": "Card", "positionImage": "Image", |