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