mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure ndoe status icon is shown when value set
This commit is contained in:
parent
dc0b9231cd
commit
423aba5bab
@ -3144,7 +3144,7 @@ RED.view = (function() {
|
|||||||
} else {
|
} else {
|
||||||
thisNode.selectAll(".red-ui-flow-node-status-group").attr("transform","translate(3,"+(d.h+3)+")");
|
thisNode.selectAll(".red-ui-flow-node-status-group").attr("transform","translate(3,"+(d.h+3)+")");
|
||||||
var statusClass = "red-ui-flow-node-status-"+(d.status.shape||"dot")+"-"+d.status.fill;
|
var statusClass = "red-ui-flow-node-status-"+(d.status.shape||"dot")+"-"+d.status.fill;
|
||||||
thisNode.selectAll(".red-ui-flow-node-status").attr("class","red-ui-flow-node-status "+statusClass);
|
thisNode.selectAll(".red-ui-flow-node-status").style("display","inline").attr("class","red-ui-flow-node-status "+statusClass);
|
||||||
}
|
}
|
||||||
if (d.status.text) {
|
if (d.status.text) {
|
||||||
thisNode.selectAll(".red-ui-flow-node-status-label").text(d.status.text);
|
thisNode.selectAll(".red-ui-flow-node-status-label").text(d.status.text);
|
||||||
|
Loading…
Reference in New Issue
Block a user