mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Move node state icons to left edge
This commit is contained in:
parent
4a6941a0d2
commit
5d5a112c2b
@ -3006,7 +3006,7 @@ RED.view = (function() {
|
||||
.attr("class","red-ui-flow-node-status-label")
|
||||
.attr("x",20).attr("y",10);
|
||||
|
||||
node.append("g").attr("class","red-ui-flow-node-changed hide").attr("transform","translate(20, -2)").append("circle").attr("r",5);
|
||||
node.append("g").attr("class","red-ui-flow-node-changed hide").attr("transform","translate(20, -2)").append("circle").attr("r",4);
|
||||
var nodeErrorButton = node.append("g").attr("class","red-ui-flow-node-error hide").attr("transform","translate(0, -2)").append("path").attr("d","M -5,4 l 10,0 -5,-8 z");
|
||||
nodeErrorButton.on("mouseenter", function() {
|
||||
if (d.validationErrors && d.validationErrors.length > 0) {
|
||||
@ -3221,11 +3221,11 @@ RED.view = (function() {
|
||||
|
||||
if (vertical) {
|
||||
thisNode.selectAll(".red-ui-flow-node-changed")
|
||||
.attr("transform",function(d){return "translate("+(0)+", -2)"})
|
||||
.attr("transform",function(d){return "translate(0, 4)"})
|
||||
.classed("hide",function(d) { return !(d.changed||d.moved); });
|
||||
|
||||
thisNode.selectAll(".red-ui-flow-node-error")
|
||||
.attr("transform",function(d){ return "translate("+((d.changed||d.moved)?12:0)+", -2)"})
|
||||
.attr("transform",function(d){ return "translate( 0,"+((d.changed||d.moved)?16:4)+")"})
|
||||
.classed("hide",function(d) { return d.valid; });
|
||||
} else {
|
||||
thisNode.selectAll(".red-ui-flow-node-changed")
|
||||
|
Loading…
Reference in New Issue
Block a user