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
pull/2306/head
Nick O'Leary 2019-10-03 15:59:35 +01:00 committed by GitHub
commit 88609a8829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -2238,6 +2238,12 @@ RED.editor = (function() {
changes.color = newColor;
changed = true;
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;