mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
debug node - show ring at start until first msg
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = function(RED) {
|
|||||||
this.severity = n.severity || 40;
|
this.severity = n.severity || 40;
|
||||||
this.active = (n.active === null || typeof n.active === "undefined") || n.active;
|
this.active = (n.active === null || typeof n.active === "undefined") || n.active;
|
||||||
if (this.tostatus) {
|
if (this.tostatus) {
|
||||||
this.oldStatus = {fill:"grey", shape:this.active?"dot":"ring"};
|
this.oldStatus = {fill:"grey", shape:"ring"};
|
||||||
this.status(this.oldStatus);
|
this.status(this.oldStatus);
|
||||||
}
|
}
|
||||||
else { this.status({}); }
|
else { this.status({}); }
|
||||||
@@ -131,7 +131,7 @@ module.exports = function(RED) {
|
|||||||
node.active = false;
|
node.active = false;
|
||||||
res.sendStatus(201);
|
res.sendStatus(201);
|
||||||
if (node.tostatus && node.hasOwnProperty("oldStatus")) {
|
if (node.tostatus && node.hasOwnProperty("oldStatus")) {
|
||||||
node.oldStatus.shape = "ring";
|
node.oldStatus.shape = "dot";
|
||||||
node.status(node.oldStatus);
|
node.status(node.oldStatus);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user