= computed(
() => store.getters[ROOT_STORE.GETTERS.LOCALE]
)
diff --git a/fittrackee_client/src/components/Workout/WorkoutDetail/WorkoutData.vue b/fittrackee_client/src/components/Workout/WorkoutDetail/WorkoutData.vue
index 70acaa71..1bb68b2d 100644
--- a/fittrackee_client/src/components/Workout/WorkoutDetail/WorkoutData.vue
+++ b/fittrackee_client/src/components/Workout/WorkoutDetail/WorkoutData.vue
@@ -13,16 +13,34 @@
{{ $t('workouts.DISTANCE') }}:
- {{ workoutObject.distance }} km
+
{{ $t('workouts.AVERAGE_SPEED') }}:
- {{ workoutObject.aveSpeed }} km/h
+
+
{{ $t('workouts.MAX_SPEED') }}:
- {{ workoutObject.maxSpeed }} km/h
+
{{ $t('workouts.MIN_ALTITUDE') }}:
- {{ workoutObject.minAlt }} m
+
{{ $t('workouts.MAX_ALTITUDE') }}:
- {{ workoutObject.maxAlt }} m
+
- {{ $t('workouts.ASCENT') }}: {{ workoutObject.ascent }} m
- {{ $t('workouts.DESCENT') }}: {{ workoutObject.descent }} m
+ {{ $t('workouts.ASCENT') }}:
+
+ {{ $t('workouts.DESCENT') }}:
+
@@ -61,10 +100,11 @@
interface Props {
workoutObject: IWorkoutObject
+ useImperialUnits: boolean
}
const props = defineProps()
- const { workoutObject } = toRefs(props)
+ const { workoutObject, useImperialUnits } = toRefs(props)
const withPause = computed(
() =>
props.workoutObject.pauses !== '0:00:00' &&
diff --git a/fittrackee_client/src/components/Workout/WorkoutDetail/index.vue b/fittrackee_client/src/components/Workout/WorkoutDetail/index.vue
index d7dec349..f004812d 100644
--- a/fittrackee_client/src/components/Workout/WorkoutDetail/index.vue
+++ b/fittrackee_client/src/components/Workout/WorkoutDetail/index.vue
@@ -20,7 +20,10 @@
:workoutData="workoutData"
:markerCoordinates="markerCoordinates"
/>
-
+
@@ -68,7 +71,7 @@
const route = useRoute()
const store = useStore()
- const { markerCoordinates, workoutData } = toRefs(props)
+ const { authUser, markerCoordinates, workoutData } = toRefs(props)
const workout: ComputedRef = computed(
() => props.workoutData.workout
)
diff --git a/fittrackee_client/src/components/Workout/WorkoutSegments.vue b/fittrackee_client/src/components/Workout/WorkoutSegments.vue
index 1c7cea41..559fd109 100644
--- a/fittrackee_client/src/components/Workout/WorkoutSegments.vue
+++ b/fittrackee_client/src/components/Workout/WorkoutSegments.vue
@@ -15,8 +15,13 @@
}"
>{{ $t('workouts.SEGMENT', 1) }} {{ index + 1 }}
- ({{ $t('workouts.DISTANCE') }}: {{ segment.distance }} km,
- {{ $t('workouts.DURATION') }}: {{ segment.duration }})
+ ({{ $t('workouts.DISTANCE') }}:
+ , {{ $t('workouts.DURATION') }}: {{ segment.duration }})
@@ -31,10 +36,11 @@
interface Props {
segments: IWorkoutSegment[]
+ useImperialUnits: boolean
}
const props = defineProps()
- const { segments } = toRefs(props)
+ const { segments, useImperialUnits } = toRefs(props)