1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Mark workspace dirty when shift-click-drag detaches wires

Fixes #2260
This commit is contained in:
Nick O'Leary 2019-08-09 10:24:52 +01:00
parent defa9a2270
commit 6a4760e291
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1221,12 +1221,15 @@ RED.view = (function() {
removedLinks.push(drag_lines[i].link) removedLinks.push(drag_lines[i].link)
} }
} }
historyEvent = { if (removedLinks.length > 0) {
t:"delete", historyEvent = {
links: removedLinks, t:"delete",
dirty:RED.nodes.dirty() links: removedLinks,
}; dirty:RED.nodes.dirty()
RED.history.push(historyEvent); };
RED.history.push(historyEvent);
RED.nodes.dirty(true);
}
hideDragLines(); hideDragLines();
} }
if (lasso) { if (lasso) {