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

Don't try to nls status text starting with '.'

Fixes #1258
This commit is contained in:
Nick O'Leary 2017-05-24 12:21:35 +01:00
parent 0a6ff900da
commit 9c6452544b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -89,8 +89,10 @@
var node = RED.nodes.node(parts[1]); var node = RED.nodes.node(parts[1]);
if (node) { if (node) {
if (msg.hasOwnProperty("text")) { if (msg.hasOwnProperty("text")) {
if (msg.text[0] !== ".") {
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;
node.dirty = true; node.dirty = true;
RED.view.redraw(); RED.view.redraw();