From cbc44841d4413fc7ea9a3ae0d33203ac49b2bd01 Mon Sep 17 00:00:00 2001 From: Joshua Taillon Date: Sat, 18 Mar 2023 11:52:17 -0600 Subject: [PATCH] Add field for title filter on Workouts page in client; allow for filter submission by pressing "enter" in any of the text inputs --- .../components/Workouts/WorkoutsFilters.vue | 318 ++++++++++-------- fittrackee_client/src/utils/api.ts | 1 + 2 files changed, 175 insertions(+), 144 deletions(-) diff --git a/fittrackee_client/src/components/Workouts/WorkoutsFilters.vue b/fittrackee_client/src/components/Workouts/WorkoutsFilters.vue index 861f9ed3..1f9b3d8c 100644 --- a/fittrackee_client/src/components/Workouts/WorkoutsFilters.vue +++ b/fittrackee_client/src/components/Workouts/WorkoutsFilters.vue @@ -1,160 +1,187 @@ @@ -245,6 +272,9 @@ input { width: 34%; } + input.title { + width: 100%; + } span { padding: $default-padding * 0.5; } diff --git a/fittrackee_client/src/utils/api.ts b/fittrackee_client/src/utils/api.ts index e70b3981..d9b624e2 100644 --- a/fittrackee_client/src/utils/api.ts +++ b/fittrackee_client/src/utils/api.ts @@ -66,6 +66,7 @@ export const workoutsPayloadKeys = [ 'duration_from', 'duration_to', 'sport_id', + 'title' ] const getRange = (stop: number, start = 1): number[] => {