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:
parent
0e1013a570
commit
a1eeff4034
@ -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:[
|
||||||
|
Loading…
Reference in New Issue
Block a user