diff --git a/packages/node_modules/@node-red/nodes/core/core/58-debug.js b/packages/node_modules/@node-red/nodes/core/core/58-debug.js index fe84d487d..cfd20b6ea 100644 --- a/packages/node_modules/@node-red/nodes/core/core/58-debug.js +++ b/packages/node_modules/@node-red/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); diff --git a/packages/node_modules/@node-red/nodes/core/core/80-function.html b/packages/node_modules/@node-red/nodes/core/core/80-function.html index e406e9d16..13ef20db0 100644 --- a/packages/node_modules/@node-red/nodes/core/core/80-function.html +++ b/packages/node_modules/@node-red/nodes/core/core/80-function.html @@ -53,12 +53,14 @@
The Catch node can also be used to handle errors. To invoke a Catch node,
pass msg
as a second argument to node.error
:
node.error("Error",msg);-
In the function block, id and name of the node can be referenced using the following properties:
node.id
- id of the nodenode.name
- name of the nodeEnvironment variables can be accessed using env.get("MY_ENV_VAR")
.