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

Highlight subflow node when log msg comes from inside

Fixes #1698
This commit is contained in:
Nick O'Leary 2018-04-17 12:44:58 +01:00
parent 27fdc9e56e
commit ff18618032
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
3 changed files with 10 additions and 1 deletions

View File

@ -181,7 +181,7 @@
this.handleDebugMessage = function(t,o) {
var sourceNode = RED.nodes.node(o.id) || RED.nodes.node(o.z);
if (sourceNode) {
o._source = {id:sourceNode.id,z:sourceNode.z,name:sourceNode.name};
o._source = {id:sourceNode.id,z:sourceNode.z,name:sourceNode.name,type:sourceNode.type,_alias:o._alias};
}
RED.debug.handleDebugMessage(o);
if (subWindow) {

View File

@ -403,12 +403,19 @@ RED.debug = (function() {
$(msg).addClass('debug-message-hover');
if (o._source) {
config.messageMouseEnter(o._source.id);
if (o._source._alias) {
config.messageMouseEnter(o._source._alias);
}
}
};
msg.onmouseleave = function() {
$(msg).removeClass('debug-message-hover');
if (o._source) {
config.messageMouseLeave(o._source.id);
if (o._source._alias) {
config.messageMouseLeave(o._source._alias);
}
}
};
var name = sanitize(((o.name?o.name:o.id)||"").toString());

View File

@ -222,7 +222,9 @@ function log_helper(self, level, msg) {
var o = {
level: level,
id: self.id,
z: self.z,
type: self.type,
_alias: self._alias,
msg: msg
};
if (self.name) {