Navigation Menu

Skip to content

Commit

Permalink
#835: Partly fixed Camel tracer to highlight correct node when select…
Browse files Browse the repository at this point in the history
…ed in table.
  • Loading branch information
davsclaus committed Dec 12, 2013
1 parent bb3cb1c commit 372cecf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/camel/js/camelHelpers.ts
Expand Up @@ -919,7 +919,7 @@ module Camel {
//console.log("Image URL is " + imageUrl);
var cid = route.getAttribute("_cid") || route.getAttribute("id");
node = { "name": name, "label": label, "labelSummary": labelSummary, "group": 1, "id": id, "elementId": elementID,
"x": x, "y:": y, "imageUrl": imageUrl, "cid": cid, "tooltip": tooltip};
"x": x, "y:": y, "imageUrl": imageUrl, "cid": cid, "tooltip": tooltip, "type": nodeId};
if (rid) {
node["rid"] = rid;
if (!$scope.routeNodes) $scope.routeNodes = {};
Expand Down
8 changes: 8 additions & 0 deletions hawtio-web/src/main/webapp/app/camel/js/trace.ts
Expand Up @@ -12,6 +12,7 @@ module Camel {
$scope.gridOptions = Camel.createBrowseGridOptions();
$scope.gridOptions.selectWithCheckboxOnly = false;
$scope.gridOptions.showSelectionCheckbox = false;
$scope.gridOptions.multiSelect = false;
$scope.gridOptions.afterSelectionChange = onSelectionChanged;
$scope.gridOptions.columnDefs.push({
field: 'toNode',
Expand Down Expand Up @@ -132,6 +133,13 @@ module Camel {
if (item) {
var cid = item["cid"];
var rid = item["rid"];
var type = item["type"];

// if its from then match on rid
if ("from" === type) {
return toNode === rid;
}

if (cid) {
// we should match cid if defined
return toNode === cid;
Expand Down

0 comments on commit 372cecf

Please sign in to comment.