Client - fix workout detail display when no gpx

This commit is contained in:
Sam 2021-09-26 14:12:34 +02:00
parent 2826e8ad8c
commit de32c136b6
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,12 @@
<div id="workout-map"> <div id="workout-map">
<div <div
class="leaflet-container" class="leaflet-container"
v-if="geoJson.jsonData && center && bounds.length === 2" v-if="
workoutData.workout.with_gpx &&
geoJson.jsonData &&
center &&
bounds.length === 2
"
> >
<LMap <LMap
:zoom="options.zoom" :zoom="options.zoom"

View File

@ -16,7 +16,9 @@
:markerCoordinates="markerCoordinates" :markerCoordinates="markerCoordinates"
/> />
<WorkoutChart <WorkoutChart
v-if="workoutData.chartData.length > 0" v-if="
workoutData.workout.with_gpx && workoutData.chartData.length > 0
"
:workoutData="workoutData" :workoutData="workoutData"
:authUser="authUser" :authUser="authUser"
@getCoordinates="updateCoordinates" @getCoordinates="updateCoordinates"