diff --git a/public/icons/node-changed.png b/public/icons/node-changed.png index 8d5896969..f92442c92 100644 Binary files a/public/icons/node-changed.png and b/public/icons/node-changed.png differ diff --git a/public/red/ui/view.js b/public/red/ui/view.js index bca646b6d..f6dafb8d2 100644 --- a/public/red/ui/view.js +++ b/public/red/ui/view.js @@ -778,7 +778,7 @@ RED.view = function() { //node.append("path").attr("class","node_error").attr("d","M 3,-3 l 10,0 l -5,-8 z"); node.append("image").attr("class","node_error hidden").attr("xlink:href","icons/node-error.png").attr("x",0).attr("y",-6).attr("width",10).attr("height",9); - //node.append("image").attr("class","node_changed hidden").attr("xlink:href","icons/node-error.png").attr("x",12).attr("y",-6).attr("width",10).attr("height",9); + node.append("image").attr("class","node_changed hidden").attr("xlink:href","icons/node-changed.png").attr("x",12).attr("y",-8).attr("width",12).attr("height",11); }); node.each(function(d,i) { @@ -842,13 +842,14 @@ RED.view = function() { (d._def.label?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ; }); thisNode.selectAll(".node_tools").attr("x",function(d){return d.w-35;}).attr("y",function(d){return d.h-20;}); - thisNode.selectAll(".node_error") - .attr("x",function(d){return d.w-5}) - .classed("hidden",function(d) { return d.valid; }); thisNode.selectAll(".node_changed") - .attr("x",function(d){return d.w-15}) + .attr("x",function(d){return d.w-6}) .classed("hidden",function(d) { return !d.changed; }); + + thisNode.selectAll(".node_error") + .attr("x",function(d){return d.w-5-(d.changed?13:0)}) + .classed("hidden",function(d) { return d.valid; }); thisNode.selectAll(".port_input").each(function(d,i) { var port = d3.select(this);