diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue index 8863d4666..a9d6f4613 100644 --- a/src/front/src/components/calendar_of_events/BigCalendar.vue +++ b/src/front/src/components/calendar_of_events/BigCalendar.vue @@ -151,6 +151,7 @@ export default { }; const getCalendar = () => { + console.log(idEvent.value,' idEvent.value'); axiosApiInstance .get(`api/calendar_of_events/my_calendars/`) .then((res) => { @@ -166,10 +167,7 @@ export default { getCalendar(); const getEvents = () => { - console.log( - idEvent.value, - "idEvent.value------------------------------------------------------------------" - ); + axiosApiInstance .get( `api/calendar_of_events/my_events/${ @@ -177,6 +175,7 @@ export default { }` ) .then((res) => { + console.log(eventFromCalendar.value, 'eventFromCalendar.value') eventFromCalendar.value = res.data; if (idEvent.value == null) { @@ -191,7 +190,7 @@ export default { calendar: null, }; } - console.log(eventFromCalendar.value, 'vvvvvvvvvvvvvvvvvvvvvvvvvvvvv') + } @@ -200,13 +199,12 @@ export default { getEvents(); - const createEvent = (i) => { - if (i != undefined) { - idEvent.value = i; - getEvents() - } + const createEvent = () => { + + showDialog.value = true; getCalendar(); + console.log('1'); // emit("getCalendar"); }; diff --git a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue index 1792efc1a..d0837d137 100644 --- a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue +++ b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue @@ -24,8 +24,6 @@ - {{ getMonthName(monthNow + 1) }} @@ -52,8 +50,18 @@ -