Calendar view mode (month/week/day) and current date don't persist after reload #25
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changing the calendar view mode via the properties panel (or navigating with Prev/Today/Next buttons, or clicking the in-header nav arrows) does not persist — after a page reload the calendar reverts to its original
monthview on today's date.Only double-clicking the calendar to cycle view modes currently saves the change; all the other entry points mutate
group._calStateand redraw but never callWhiteboardSync.onUpdate(group), so the server never learns about the change.Affected code paths:
properties.js—prop-cal-viewmodechange handler,prop-cal-prev/prop-cal-next/prop-cal-todayclick handlers.calendar.js—navigateNext,navigatePrev,cycleViewMode, andnavigateCalendar(the helper used by the in-header arrow clicks).Fix: call
WhiteboardSync.onUpdate(node)at the end of every calendar state mutation path.Pull request opened: #26