1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Support displaying falsey node status values

Fixes #2246
This commit is contained in:
Nick O'Leary 2019-08-06 15:12:13 +01:00
parent 083212cffe
commit 542cf3147d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -3056,7 +3056,7 @@ RED.view = (function() {
} }
thisNode.selectAll(".node_status").style(style); thisNode.selectAll(".node_status").style(style);
} }
if (d.status.text) { if (d.status.hasOwnProperty('text')) {
thisNode.selectAll(".node_status_label").text(d.status.text); thisNode.selectAll(".node_status_label").text(d.status.text);
} else { } else {
thisNode.selectAll(".node_status_label").text(""); thisNode.selectAll(".node_status_label").text("");