mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Send status message id to be nls'd in editor
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user