mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Compare commits
2 Commits
check-node
...
quick-add-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37524e05bb | ||
|
|
3fbfd47089 |
@@ -1455,9 +1455,6 @@ RED.view = (function() {
|
|||||||
// auto select dropped node - so info shows (if visible)
|
// auto select dropped node - so info shows (if visible)
|
||||||
clearSelection();
|
clearSelection();
|
||||||
nn.selected = true;
|
nn.selected = true;
|
||||||
if (targetGroup) {
|
|
||||||
selectGroup(targetGroup,false);
|
|
||||||
}
|
|
||||||
movingSet.add(nn);
|
movingSet.add(nn);
|
||||||
updateActiveNodes();
|
updateActiveNodes();
|
||||||
updateSelection();
|
updateSelection();
|
||||||
@@ -1894,7 +1891,18 @@ RED.view = (function() {
|
|||||||
};
|
};
|
||||||
RED.history.push(historyEvent);
|
RED.history.push(historyEvent);
|
||||||
RED.nodes.dirty(true);
|
RED.nodes.dirty(true);
|
||||||
|
} else {
|
||||||
|
// Trigger quick add dialog
|
||||||
|
d3.event.stopPropagation();
|
||||||
|
clearSelection();
|
||||||
|
const point = d3.mouse(this);
|
||||||
|
var clickedGroup = getGroupAt(point[0], point[1]);
|
||||||
|
if (drag_lines.length > 0) {
|
||||||
|
clickedGroup = clickedGroup || RED.nodes.group(drag_lines[0].node.g)
|
||||||
|
}
|
||||||
|
showQuickAddDialog({ position: point, group: clickedGroup });
|
||||||
}
|
}
|
||||||
|
|
||||||
hideDragLines();
|
hideDragLines();
|
||||||
}
|
}
|
||||||
if (lasso) {
|
if (lasso) {
|
||||||
|
|||||||
Reference in New Issue
Block a user