From a8d068045718cb9fd8abe7c161e9804c4add668c Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 2 Nov 2021 20:26:43 +0100 Subject: [PATCH] Client - display pagination on workouts list --- .../src/components/Common/Pagination.vue | 27 +++- .../components/Common/StatsChart/Chart.vue | 2 +- .../components/Workouts/WorkoutsFilters.vue | 3 + .../src/components/Workouts/WorkoutsList.vue | 48 ++++++ fittrackee_client/src/locales/en/common.json | 3 +- .../src/locales/en/statistics.json | 1 - fittrackee_client/src/locales/fr/common.json | 3 +- .../src/locales/fr/statistics.json | 1 - .../src/store/modules/workouts/actions.ts | 6 + .../src/store/modules/workouts/enums.ts | 2 + .../src/store/modules/workouts/getters.ts | 3 + .../src/store/modules/workouts/mutations.ts | 7 + .../src/store/modules/workouts/state.ts | 2 + .../src/store/modules/workouts/types.ts | 9 ++ fittrackee_client/src/utils/api.ts | 52 +++++++ .../tests/unit/utils/api.spec.ts | 138 ++++++++++++++++++ 16 files changed, 297 insertions(+), 10 deletions(-) diff --git a/fittrackee_client/src/components/Common/Pagination.vue b/fittrackee_client/src/components/Common/Pagination.vue index ebb9ac80..4588a604 100644 --- a/fittrackee_client/src/components/Common/Pagination.vue +++ b/fittrackee_client/src/components/Common/Pagination.vue @@ -8,16 +8,22 @@ :event="pagination.has_prev ? 'click' : ''" :disabled="!pagination.has_prev" > +