From c667a0e74ce543ab533379ed87f710ae74b00542 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 5 Sep 2018 09:45:34 +0100 Subject: [PATCH] debug node - show ring at start until first msg --- nodes/core/core/58-debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index cfd20b6ea..0d57ca491 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -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 {