mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2303 from pdong/bug/node-color-change-when-not-on-a-flow
Fix issue where subflow color did not update when not on a flow
This commit is contained in:
commit
88609a8829
@ -2238,6 +2238,12 @@ RED.editor = (function() {
|
|||||||
changes.color = newColor;
|
changes.color = newColor;
|
||||||
changed = true;
|
changed = true;
|
||||||
RED.utils.clearNodeColorCache();
|
RED.utils.clearNodeColorCache();
|
||||||
|
if (editing_node.type === "subflow") {
|
||||||
|
var nodeDefinition = RED.nodes.getType(
|
||||||
|
"subflow:" + editing_node.id
|
||||||
|
);
|
||||||
|
nodeDefinition["color"] = newColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var old_env = editing_node.env;
|
var old_env = editing_node.env;
|
||||||
|
Loading…
Reference in New Issue
Block a user