fix(web): keep segmented timeline allocations actionable
This commit is contained in:
@@ -812,7 +812,7 @@ function renderAllocBlocksFromData(
|
||||
if (suppressHoverInteractions) return;
|
||||
onAllocationContextMenu(
|
||||
{
|
||||
allocationId: alloc.id,
|
||||
allocationId: getPlanningEntryMutationId(alloc),
|
||||
projectId: alloc.projectId,
|
||||
contextDate: resolveSegmentContextDate(
|
||||
e.clientX,
|
||||
@@ -1151,7 +1151,11 @@ function renderDailyBars(
|
||||
e.stopPropagation();
|
||||
if (suppressHoverInteractions) return;
|
||||
onAllocationContextMenu(
|
||||
{ allocationId: alloc.id, projectId: alloc.projectId, contextDate: new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())) },
|
||||
{
|
||||
allocationId: getPlanningEntryMutationId(alloc),
|
||||
projectId: alloc.projectId,
|
||||
contextDate: new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())),
|
||||
},
|
||||
e.clientX,
|
||||
e.clientY,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user