Skip to content

Commit

Permalink
started working on fixing participation input
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ruf committed Jul 11, 2024
1 parent 911b29a commit 9c94546
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Resources/src/stores/weeksStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ export function useWeeks() {
}
}

const mealDays = response.value.days;
console.log(JSON.stringify(mealDays));

return response.value.calendarWeek;
}

Expand Down
16 changes: 16 additions & 0 deletions src/Resources/src/views/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,26 @@ const menu = reactive<WeekDTO>({
const calendarWeek = ref(0);
// watch(
// () => menu.days,
// (prev, after) => {
// if (prev.length > 0) {
// const previous = JSON.stringify(Object.entries(prev[0].meals));
// console.log('Prev: \n' + previous);
// }
// if (after.length > 0) {
// const afterVal = JSON.stringify(Object.entries(after[0].meals));
// console.log('After: \n' + afterVal);
// }
// }
// )
onMounted(async () => {
const progress = useProgress().start();
parseWeekId.value = parseInt(props.week);
console.log(`Week is ${props.week} and create is ${props.create}`);
if (DishesState.dishes.length === 0) {
await fetchDishes();
}
Expand Down

0 comments on commit 9c94546

Please sign in to comment.