-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix schedule event previews #441
Conversation
@@ -87,7 +87,6 @@ const schedules = ref([]); | |||
const firstSchedule = computed(() => (schedules.value?.length > 0 ? schedules.value[0] : null)); | |||
const schedulesReady = ref(false); | |||
const getFirstSchedule = async () => { | |||
calendarEvents.value = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find any reason to keep this here. This was the cause for calendar events to disappear on schedule save.
@@ -107,6 +106,8 @@ const onDateChange = (dateObj) => { | |||
const start = dj(dateObj.start); | |||
const end = dj(dateObj.end); | |||
|
|||
activeDate.value = start.add(end.diff(start, 'minutes')/2, 'minutes'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're now updating the selected date on navigation too, to keep the event generation in sync with the view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, tested and it works great!
Description of the Change
This change does two things:
Benefits
More convenient display of elements in the calendar on availability configuration.
Applicable Issues
Closes #350