@@ -158,6 +169,10 @@
text-align: center;
}
}
+ .workout-map,
+ .workout-data {
+ cursor: pointer;
+ }
}
}
}
diff --git a/fittrackee_client/src/store/modules/workouts/enums.ts b/fittrackee_client/src/store/modules/workouts/enums.ts
index 57986e74..c871f60c 100644
--- a/fittrackee_client/src/store/modules/workouts/enums.ts
+++ b/fittrackee_client/src/store/modules/workouts/enums.ts
@@ -12,6 +12,7 @@ export enum WorkoutsGetters {
export enum WorkoutsMutations {
EMPTY_WORKOUTS = 'EMPTY_WORKOUTS',
+ EMPTY_WORKOUT = 'EMPTY_WORKOUT',
SET_CALENDAR_WORKOUTS = 'SET_CALENDAR_WORKOUTS',
SET_USER_WORKOUTS = 'SET_USER_WORKOUTS',
SET_WORKOUT = 'SET_WORKOUT',
diff --git a/fittrackee_client/src/store/modules/workouts/mutations.ts b/fittrackee_client/src/store/modules/workouts/mutations.ts
index 5bc6ec67..14f19215 100644
--- a/fittrackee_client/src/store/modules/workouts/mutations.ts
+++ b/fittrackee_client/src/store/modules/workouts/mutations.ts
@@ -42,4 +42,11 @@ export const mutations: MutationTree
& TWorkoutsMutations = {
state.calendar_workouts = []
state.user_workouts = []
},
+ [WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT](state: IWorkoutsState) {
+ state.workout = {
+ gpx: '',
+ loading: false,
+ workout: {},
+ }
+ },
}
diff --git a/fittrackee_client/src/store/modules/workouts/types.ts b/fittrackee_client/src/store/modules/workouts/types.ts
index 0a64adda..9675a647 100644
--- a/fittrackee_client/src/store/modules/workouts/types.ts
+++ b/fittrackee_client/src/store/modules/workouts/types.ts
@@ -52,6 +52,7 @@ export type TWorkoutsMutations = {
loading: boolean
): void
[WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUTS](state: S): void
+ [WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT](state: S): void
}
export type TWorkoutsStoreModule = Omit<
diff --git a/fittrackee_client/src/views/Workout.vue b/fittrackee_client/src/views/Workout.vue
index c74e8ad6..24085933 100644
--- a/fittrackee_client/src/views/Workout.vue
+++ b/fittrackee_client/src/views/Workout.vue
@@ -24,7 +24,13 @@