1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Node status not being refreshed properly in the editor

This commit is contained in:
Nick O'Leary 2017-01-09 14:18:59 +00:00
parent 0e1013a570
commit a1eeff4034
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -104,10 +104,8 @@
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()}); msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
} }
node.status = msg; node.status = msg;
if (statusEnabled) { node.dirty = true;
node.dirty = true; RED.view.redraw();
RED.view.redraw();
}
} }
}); });
RED.comms.subscribe("node/#",function(topic,msg) { RED.comms.subscribe("node/#",function(topic,msg) {
@ -179,12 +177,6 @@
}); });
} }
var statusEnabled = false;
function toggleStatus(state) {
statusEnabled = state;
RED.view.status(statusEnabled);
}
function loadEditor() { function loadEditor() {
var menuOptions = []; var menuOptions = [];
menuOptions.push({id:"menu-item-view-menu",label:RED._("menu.label.view.view"),options:[ menuOptions.push({id:"menu-item-view-menu",label:RED._("menu.label.view.view"),options:[