Skip to content

Commit

Permalink
#39: Camel tracer should only highlight one node in the CBR.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Apr 17, 2013
1 parent ddfafde commit d6be961
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/js/trace.ts
Expand Up @@ -16,7 +16,17 @@ module Camel {
nodes.attr("class", "node");

nodes.filter(function (item) {
return item && (toNode === item["cid"] || toNode === item["rid"]);
if (item) {
var cid = item["cid"];
var rid = item["rid"];
if (cid) {
// we should match cid if defined
return toNode === cid;
} else {
return toNode === rid;
}
}
return null;
}).attr("class", "node selected");
}
}
Expand Down

0 comments on commit d6be961

Please sign in to comment.