From 0c78b7a61871527ec8b7bbf7e2a7b7bfa375785a Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 26 Sep 2021 11:26:12 +0200 Subject: [PATCH] Client - update tooltip title --- .../src/components/Workout/WorkoutChart/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fittrackee_client/src/components/Workout/WorkoutChart/index.vue b/fittrackee_client/src/components/Workout/WorkoutChart/index.vue index b1a4bef7..7c295b9e 100644 --- a/fittrackee_client/src/components/Workout/WorkoutChart/index.vue +++ b/fittrackee_client/src/components/Workout/WorkoutChart/index.vue @@ -169,8 +169,10 @@ return tooltipItems.length === 0 ? '' : displayDistance.value - ? tooltipItems[0].label + ' km' - : formatDuration(tooltipItems[0].label.replace(',', '')) + ? `${t('workouts.DISTANCE')}: ${tooltipItems[0].label} km` + : `${t('workouts.DURATION')}: ${formatDuration( + tooltipItems[0].label.replace(',', '') + )}` }, }, },