Skip to content

Commit

Permalink
#353 use an empty row object when we resume if we're showing the deta…
Browse files Browse the repository at this point in the history
…il view; so we can keep the headers table expanded as we step / resume
  • Loading branch information
jstrachan committed Jun 4, 2013
1 parent f60483d commit b10c82f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions hawtio-web/src/main/webapp/app/camel/js/debug.ts
Expand Up @@ -233,14 +233,12 @@ module Camel {

function updateMessageSelection() {
$scope.selectRowIndex($scope.rowIndex);
// close the detail view if we've no message any more

if (!$scope.row) {
$scope.lastDetailShow = $scope.messageDialog.show;
$scope.messageDialog.close();
} else {
if ($scope.lastDetailShow) {
$scope.messageDialog.open();
if (!$scope.row && $scope.messageDialog.show) {
// lets make a dummy empty row
// so we can keep the detail view while resuming
$scope.row = {
headers: {},
body: ""
}
}
}
Expand Down

0 comments on commit b10c82f

Please sign in to comment.