From afc262236dc6e4a351300874f2c3a46191631778 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Thu, 29 Mar 2018 21:33:33 +0200 Subject: [PATCH] Add responses to rename in/outport --- src/protocol/Graph.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/protocol/Graph.coffee b/src/protocol/Graph.coffee index 55a56be..fc975e6 100644 --- a/src/protocol/Graph.coffee +++ b/src/protocol/Graph.coffee @@ -215,6 +215,18 @@ class GraphProtocol #port: port.port #metadata: port.metadata @sendAll 'removeoutport', data, context + graph.on 'renameInport', (oldName, newName) => + data = + from: oldName + to: newName + graph: id + @sendAll 'renameinport', data, context + graph.on 'renameOutport', (oldName, newName) => + data = + from: oldName + to: newName + graph: id + @sendAll 'renameoutport', data, context addNode: (graph, node, context) -> unless node.id or node.component