From 77018c54cd324bf5f8b13e3ff44141eae7e21514 Mon Sep 17 00:00:00 2001 From: ssmucny Date: Sun, 4 Jun 2023 22:19:55 -0400 Subject: [PATCH] update event editor fields --- packages/frontend/src/components/MkEventEditor.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkEventEditor.vue b/packages/frontend/src/components/MkEventEditor.vue index 6157165ce9..2130622567 100644 --- a/packages/frontend/src/components/MkEventEditor.vue +++ b/packages/frontend/src/components/MkEventEditor.vue @@ -145,8 +145,7 @@ const availabilityStart = ref(props.modelValue?.metadata.offers?.availabilitySta const availabilityEnd = ref(props.modelValue?.metadata.offers?.availabilityEnds ?? null); const keywords = ref(props.modelValue?.metadata.keywords ?? null); - -function get() { +function get(): misskey.entities.Note['event'] { const calcAt = (date: Ref, time: Ref): number => (new Date(`${date.value} ${time.value}`)).getTime(); const start = calcAt(startDate, startTime); @@ -187,7 +186,8 @@ function get() { }; } -watch([title, startDate, startTime, endDate, endTime, meta], () => emit('update:modelValue', get()), { +watch([title, startDate, startTime, endDate, endTime, location, url, doorTime, organizer, organizerLink, audience, language, + ageRange, ticketsUrl, isFree, price, availabilityStart, availabilityEnd, keywords], () => emit('update:modelValue', get()), { deep: true, });