Client - add link to workout in dashboard calendar and records
This commit is contained in:
parent
0cf61a46de
commit
663e81c96d
@ -1,5 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="calendar-workout">
|
<div
|
||||||
|
class="calendar-workout"
|
||||||
|
@click="
|
||||||
|
$router.push({ name: 'Workout', params: { workoutId: workout.id } })
|
||||||
|
"
|
||||||
|
>
|
||||||
<img alt="workout sport logo" :src="sportImg" :title="workout.title" />
|
<img alt="workout sport logo" :src="sportImg" :title="workout.title" />
|
||||||
<sup>
|
<sup>
|
||||||
<i
|
<i
|
||||||
@ -46,6 +51,7 @@
|
|||||||
|
|
||||||
.calendar-workout {
|
.calendar-workout {
|
||||||
padding: 2px 0;
|
padding: 2px 0;
|
||||||
|
cursor: pointer;
|
||||||
img {
|
img {
|
||||||
max-width: 18px;
|
max-width: 18px;
|
||||||
max-height: 18px;
|
max-height: 18px;
|
||||||
|
@ -17,7 +17,15 @@
|
|||||||
t(`workouts.RECORD_${record.record_type}`)
|
t(`workouts.RECORD_${record.record_type}`)
|
||||||
}}</span>
|
}}</span>
|
||||||
<span class="record-value">{{ record.value }}</span>
|
<span class="record-value">{{ record.value }}</span>
|
||||||
<span class="record-date">{{ record.workout_date }}</span>
|
<span class="record-date">
|
||||||
|
<router-link
|
||||||
|
:to="{
|
||||||
|
name: 'Workout',
|
||||||
|
params: { workoutId: record.workout_id },
|
||||||
|
}"
|
||||||
|
>{{ record.workout_date }}</router-link
|
||||||
|
>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Card>
|
</Card>
|
||||||
|
Loading…
Reference in New Issue
Block a user