Send status message id to be nls'd in editor

This commit is contained in:
Nick O'Leary
2015-07-07 21:31:28 +01:00
parent fd4b319af9
commit ee5ff8b010
6 changed files with 42 additions and 42 deletions

View File

@@ -61,17 +61,17 @@ module.exports = function(RED) {
this.client = redisConnectionPool.get(this.hostname,this.port);
if (this.client.connected) {
this.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
this.status({fill:"green",shape:"dot",text:"node-red:common.status.connected"});
} else {
this.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.disconnected")},true);
this.status({fill:"red",shape:"ring",text:"node-red:common.status.disconnected"},true);
}
var node = this;
this.client.on("end", function() {
node.status({fill:"red",shape:"ring",text:RED._("node-red:common.status.disconnected")});
node.status({fill:"red",shape:"ring",text:"node-red:common.status.disconnected"});
});
this.client.on("connect", function() {
node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.connected")});
node.status({fill:"green",shape:"dot",text:"node-red:common.status.connected"});
});
this.on("input", function(msg) {