mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge branch 'master' into dev
This commit is contained in:
commit
368418cf56
@ -19,7 +19,11 @@ module.exports = function(RED) {
|
|||||||
if (this.tosidebar === undefined) { this.tosidebar = true; }
|
if (this.tosidebar === undefined) { this.tosidebar = true; }
|
||||||
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;
|
||||||
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 node = this;
|
||||||
var levels = {
|
var levels = {
|
||||||
@ -122,7 +126,7 @@ module.exports = function(RED) {
|
|||||||
if (state === "enable") {
|
if (state === "enable") {
|
||||||
node.active = true;
|
node.active = true;
|
||||||
res.sendStatus(200);
|
res.sendStatus(200);
|
||||||
if (node.tostatus) { node.status({}); }
|
if (node.tostatus) { node.status({fill:"grey", shape:"dot"}); }
|
||||||
} else if (state === "disable") {
|
} else if (state === "disable") {
|
||||||
node.active = false;
|
node.active = false;
|
||||||
res.sendStatus(201);
|
res.sendStatus(201);
|
||||||
|
@ -23,7 +23,7 @@ var i18n;
|
|||||||
|
|
||||||
var settings;
|
var settings;
|
||||||
var disableNodePathScan = false;
|
var disableNodePathScan = false;
|
||||||
var iconFileExtensions = [".png", ".gif"];
|
var iconFileExtensions = [".png", ".gif", ".svg"];
|
||||||
|
|
||||||
function init(runtime) {
|
function init(runtime) {
|
||||||
settings = runtime.settings;
|
settings = runtime.settings;
|
||||||
|
Loading…
Reference in New Issue
Block a user