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); + }; +