Client - add link to workout in dashboard timeline

This commit is contained in:
Sam
2021-09-24 15:01:59 +02:00
parent 66f2f3a4df
commit 1640a3fee4
5 changed files with 36 additions and 3 deletions

View File

@ -24,7 +24,13 @@
</template>
<script lang="ts">
import { computed, ComputedRef, defineComponent, onBeforeMount } from 'vue'
import {
computed,
ComputedRef,
defineComponent,
onBeforeMount,
onUnmounted,
} from 'vue'
import { useRoute } from 'vue-router'
import Loader from '@/components/Common/Loader.vue'
@ -60,6 +66,9 @@
)
const sports = computed(() => store.getters[SPORTS_STORE.GETTERS.SPORTS])
onUnmounted(() => {
store.commit(WORKOUTS_STORE.MUTATIONS.EMPTY_WORKOUT)
})
return { authUser, sports, workout }
},
})