aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-14 07:14:50 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-14 07:14:50 -0700
commit60c663cc1df0543d12443ec3aa76b8e65dff6744 (patch)
tree218bd9b165889e2fd8d3e88e585d698fed775dfb /modern/src
parentf421878a61ad86c0490bf8e10863d25fbefea93d (diff)
downloadtrackermap-web-60c663cc1df0543d12443ec3aa76b8e65dff6744.tar.gz
trackermap-web-60c663cc1df0543d12443ec3aa76b8e65dff6744.tar.bz2
trackermap-web-60c663cc1df0543d12443ec3aa76b8e65dff6744.zip
Standard heart rate attribute
Diffstat (limited to 'modern/src')
-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 90905395..cc50911c 100644
--- a/modern/src/common/attributes/usePositionAttributes.js
+++ b/modern/src/common/attributes/usePositionAttributes.js
@@ -148,6 +148,10 @@ export default (t) => useMemo(() => ({
name: t('positionSteps'),
type: 'number',
},
+ heartRate: {
+ name: t('positionHeartRate'),
+ type: 'number',
+ },
input: {
name: t('positionInput'),
type: 'number',
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index a6ac151f..4ad897a5 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -267,6 +267,7 @@
"positionHours": "Hours",
"positionSteps": "Steps",
"positionInput": "Input",
+ "positionHeartRate": "Heart Rate",
"positionOutput": "Output",
"positionBatteryLevel": "Battery Level",
"positionFuelConsumption": "Fuel Consumption",