From d67f91e7ed2daf1b962fd8838903b18dff34a5ae Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 31 Aug 2018 16:31:08 +0100 Subject: [PATCH 1/2] debug node - indicate status all the time if selected to do so --- nodes/core/core/58-debug.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index fe84d487d..cfd20b6ea 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -19,7 +19,11 @@ module.exports = function(RED) { if (this.tosidebar === undefined) { this.tosidebar = true; } this.severity = n.severity || 40; this.active = (n.active === null || typeof n.active === "undefined") || n.active; - this.status({}); + if (this.tostatus) { + this.oldStatus = {fill:"grey", shape:this.active?"dot":"ring"}; + this.status(this.oldStatus); + } + else { this.status({}); } var node = this; var levels = { @@ -122,7 +126,7 @@ module.exports = function(RED) { if (state === "enable") { node.active = true; res.sendStatus(200); - if (node.tostatus) { node.status({}); } + if (node.tostatus) { node.status({fill:"grey", shape:"dot"}); } } else if (state === "disable") { node.active = false; res.sendStatus(201); From 94031a52a53fd0b5ea81c63d4190e3b509ea3f10 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 31 Aug 2018 21:01:47 +0100 Subject: [PATCH 2/2] Add svg to permitted icon extension list --- red/runtime/nodes/registry/localfilesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/runtime/nodes/registry/localfilesystem.js b/red/runtime/nodes/registry/localfilesystem.js index b591245d5..527ccce71 100644 --- a/red/runtime/nodes/registry/localfilesystem.js +++ b/red/runtime/nodes/registry/localfilesystem.js @@ -23,7 +23,7 @@ var i18n; var settings; var disableNodePathScan = false; -var iconFileExtensions = [".png", ".gif"]; +var iconFileExtensions = [".png", ".gif", ".svg"]; function init(runtime) { settings = runtime.settings;