Add flows:reorder event

This commit is contained in:
Nick O'Leary
2020-04-27 10:49:54 +01:00
parent f78be9050a
commit 2069cc4392

View File

@@ -348,6 +348,9 @@ RED.nodes = (function() {
workspacesOrder.splice(targetIndex,0,ws.id);
}
RED.events.emit('flows:add',ws);
if (targetIndex !== undefined) {
RED.events.emit('flows:reorder',workspacesOrder)
}
}
function getWorkspace(id) {
return workspaces[id];