mirror of
https://github.com/nasa/openmct.git
synced 2025-04-16 15:29:20 +00:00
[Timeline] Allow drops from tree
Don't assume that all drops will be dropped swimlanes.
This commit is contained in:
parent
31d8c9a48f
commit
dea6554e04
@ -82,12 +82,17 @@ define(
|
||||
),
|
||||
draggedSwimlane = dndService.getData(
|
||||
SwimlaneDragConstants.TIMELINE_SWIMLANE_DRAG_TYPE
|
||||
);
|
||||
),
|
||||
droppedObject = draggedSwimlane ?
|
||||
draggedSwimlane.domainObject :
|
||||
dndService.getData(
|
||||
SwimlaneDragConstants.MCT_EXTENDED_DRAG_TYPE
|
||||
);
|
||||
|
||||
if (id) {
|
||||
event.stopPropagation();
|
||||
// Delegate the drop to the swimlane itself
|
||||
swimlane.drop(id, (draggedSwimlane || {}).domainObject);
|
||||
swimlane.drop(id, droppedObject);
|
||||
}
|
||||
|
||||
// Clear the swimlane highlights
|
||||
|
Loading…
x
Reference in New Issue
Block a user