Added live update after attendance set
This commit is contained in:
@@ -72,6 +72,8 @@ const myAttendance = computed<CalendarSignup | null>(() => {
|
|||||||
|
|
||||||
async function setAttendance(state: CalendarAttendance) {
|
async function setAttendance(state: CalendarAttendance) {
|
||||||
setCalendarEventAttendance(activeEvent.value.id, state);
|
setCalendarEventAttendance(activeEvent.value.id, state);
|
||||||
|
//refresh event data
|
||||||
|
activeEvent.value = await getCalendarEvent(activeEvent.value.id);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user