From e9a696dcaade2951438555276ea6e09b422f1c91 Mon Sep 17 00:00:00 2001 From: roberts Date: Fri, 26 May 2023 17:48:07 +0200 Subject: [PATCH] wip --- src/components/ExerciseList.vue | 8 ++++- src/stores/storeInput.js | 55 ++++++++++++++++++++++++++----- src/views/weight/WeightsInput.vue | 21 ++++++------ 3 files changed, 64 insertions(+), 20 deletions(-) diff --git a/src/components/ExerciseList.vue b/src/components/ExerciseList.vue index 366c052..a7742f3 100644 --- a/src/components/ExerciseList.vue +++ b/src/components/ExerciseList.vue @@ -7,7 +7,7 @@
    - +
@@ -21,12 +21,14 @@ import { useExerciseStore } from '@/stores/storeExercise.js'; import { onMounted, ref } from 'vue'; import WeightsInput from "@/views/weight/WeightsInput.vue"; + import { useWeightInputStore } from '@/stores/storeInput'; const muscle = defineProps({ muscle: String, }) const json = useExerciseStore() + const weightInput = useWeightInputStore() const exercises = ref([]) const selectedExercise = ref(null) @@ -67,6 +69,10 @@ selectedExercise.value = exercise; }; + const addSets = () => { + weightInput.initInputs(selectedExercise.value); + }; +