mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Refresh active nodes when node properties change
This commit is contained in:
parent
9fb958b302
commit
98c539f662
@ -150,9 +150,9 @@ RED.editor = (function() {
|
|||||||
node.ports.pop();
|
node.ports.pop();
|
||||||
}
|
}
|
||||||
RED.nodes.eachLink(function(l) {
|
RED.nodes.eachLink(function(l) {
|
||||||
if (l.source === node && l.sourcePort >= node.outputs) {
|
if (l.source === node && l.sourcePort >= node.outputs) {
|
||||||
removedLinks.push(l);
|
removedLinks.push(l);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (node.outputs > node.ports.length) {
|
} else if (node.outputs > node.ports.length) {
|
||||||
while (node.outputs > node.ports.length) {
|
while (node.outputs > node.ports.length) {
|
||||||
@ -305,7 +305,7 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
editing_node.dirty = true;
|
editing_node.dirty = true;
|
||||||
validateNode(editing_node);
|
validateNode(editing_node);
|
||||||
RED.view.redraw();
|
RED.view.redraw(true);
|
||||||
}
|
}
|
||||||
$( this ).dialog( "close" );
|
$( this ).dialog( "close" );
|
||||||
}
|
}
|
||||||
@ -1079,7 +1079,7 @@ RED.editor = (function() {
|
|||||||
RED.history.push(historyEvent);
|
RED.history.push(historyEvent);
|
||||||
}
|
}
|
||||||
editing_node.dirty = true;
|
editing_node.dirty = true;
|
||||||
RED.view.redraw();
|
RED.view.redraw(true);
|
||||||
}
|
}
|
||||||
$( this ).dialog( "close" );
|
$( this ).dialog( "close" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user