mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 08:30:05 +00:00
fix(planner): bookings a collaborator moves on a day take their new slots in every open list
reservation:positions was on the ignored list, while the stop order the same reorder sends was applied, so in other tabs and for other members the bookings sat between the wrong stops until a reload. The event now writes the slots the way the mover's own list did, for the day it names (day_id from REST, dayId from the MCP tool) or as the global slot without one, and caches them offline. A booking handed back by an edit or a reservation:updated event without day slots keeps the ones it had, in the store and in the offline cache. Refs #2631
This commit is contained in:
@@ -120,7 +120,6 @@ export const IGNORED_WS_EVENTS = [
|
||||
'budget:settlement-created',
|
||||
'budget:settlement-updated',
|
||||
'budget:settlement-deleted',
|
||||
'reservation:positions',
|
||||
// Accommodations live in page-local planner state; the client refetches
|
||||
// them off trip:updated date changes, never off these events.
|
||||
'accommodation:created',
|
||||
|
||||
Reference in New Issue
Block a user