Display debug node name in debug panel if its known

This commit is contained in:
Nick O'Leary
2017-01-23 13:57:06 +00:00
parent 3fdeb38bb7
commit fd6f7cd881
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ RED.debug = (function() {
var metaRow = $('<div class="debug-message-meta"></div>').appendTo(msg);
$('<span class="debug-message-date">'+ getTimestamp()+'</span>').appendTo(metaRow);
if (sourceNode) {
$('<a>',{href:"#",class:"debug-message-name"}).html('node: '+sourceNode.id)
$('<a>',{href:"#",class:"debug-message-name"}).html('node: '+(sourceNode.name||sourceNode.id))
.appendTo(metaRow)
.click(function(evt) {
evt.preventDefault();