Simplify navigation event handling and week info rendering
Removes redundant period info update event and consolidates week information calculation Streamlines navigation event flow by using navigation completed event for week info updates Removes separate week info update method and moves calculation into renderer Reduces complexity of event management and improves code efficiency
This commit is contained in:
parent
f0cc9bb6ce
commit
284c85b2f8
3 changed files with 19 additions and 28 deletions
|
|
@ -13,11 +13,10 @@ export const CoreEvents = {
|
|||
VIEW_RENDERED: 'view:rendered',
|
||||
WORKWEEK_CHANGED: 'workweek:changed',
|
||||
|
||||
// Navigation events (5)
|
||||
// Navigation events (4)
|
||||
NAV_BUTTON_CLICKED: 'nav:button-clicked',
|
||||
DATE_CHANGED: 'nav:date-changed',
|
||||
NAVIGATION_COMPLETED: 'nav:navigation-completed',
|
||||
PERIOD_INFO_UPDATE: 'nav:period-info-update',
|
||||
NAVIGATE_TO_EVENT: 'nav:navigate-to-event',
|
||||
|
||||
// Data events (5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue