the-graph
the-graph copied to clipboard
Component icons are lost when navigating between graphs
noflo-ui allows you to navigate between main graph and subgraphs used in it. We do this by changing the graph property of the-graph-editor. Since the runtime connection remains the same, we don't change the library.
However, in this scenario the graph editor loses icons.
In the main graph, we have icons initially:

In a subgraph, icons are gone:

Coming back to the main graph, no icons there either:

I think this is getting overwritten in the-graph-editor.buildInitialLibrary():
nofloGraph.nodes.forEach(function (node) {
var component = {
name: node.component,
icon: 'cog',
description: '',
inports: [],
outports: []
};
...
Should be smarter there, but not sure how...