mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #4184 from node-red/4113-group-selection-api
Enable RED.view.select to select group by id
This commit is contained in:
commit
70620ad12d
@ -274,7 +274,7 @@ var RED = (function() {
|
|||||||
if (nodeToShow) {
|
if (nodeToShow) {
|
||||||
RED.view.reveal(nodeToShow.id)
|
RED.view.reveal(nodeToShow.id)
|
||||||
window.location.hash = currentHash
|
window.location.hash = currentHash
|
||||||
RED.view.select({ nodes: [nodeToShow] })
|
RED.view.select(nodeToShow.id)
|
||||||
if (showEditDialog) {
|
if (showEditDialog) {
|
||||||
RED.editor.editGroup(nodeToShow)
|
RED.editor.editGroup(nodeToShow)
|
||||||
}
|
}
|
||||||
|
@ -6114,6 +6114,13 @@ RED.view = (function() {
|
|||||||
selectedNode.dirty = true;
|
selectedNode.dirty = true;
|
||||||
movingSet.clear();
|
movingSet.clear();
|
||||||
movingSet.add(selectedNode);
|
movingSet.add(selectedNode);
|
||||||
|
} else {
|
||||||
|
selectedNode = RED.nodes.group(selection);
|
||||||
|
if (selectedNode) {
|
||||||
|
movingSet.clear();
|
||||||
|
selectedGroups.clear()
|
||||||
|
selectedGroups.add(selectedNode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (selection) {
|
} else if (selection) {
|
||||||
if (selection.nodes) {
|
if (selection.nodes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user