Client - refactoring workouts (WIP)

This commit is contained in:
Sam
2021-11-02 12:24:31 +01:00
parent c5428c28a6
commit 288a78e2a0
7 changed files with 27 additions and 16 deletions

View File

@ -122,6 +122,7 @@
import { IWorkout } from '@/types/workouts'
import { useStore } from '@/use/useStore'
import { getDateWithTZ } from '@/utils/dates'
import { defaultOrder } from '@/utils/workouts'
export default defineComponent({
name: 'WorkoutsList',
@ -164,6 +165,7 @@
store.dispatch(WORKOUTS_STORE.ACTIONS.GET_USER_WORKOUTS, {
page: page.value,
per_page,
...defaultOrder,
...props.params,
})
}
@ -172,6 +174,7 @@
store.dispatch(WORKOUTS_STORE.ACTIONS.GET_MORE_USER_WORKOUTS, {
page: page.value,
per_page,
...defaultOrder,
...props.params,
})
}