Skip to content

Commit

Permalink
Clear gauge chart when last gauge is de-selected
Browse files Browse the repository at this point in the history
Resolves #17
  • Loading branch information
trask committed Jul 3, 2015
1 parent 8c05d57 commit 1afe244
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/app/scripts/controllers/jvm/gauges.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ glowroot.controller('JvmGaugesCtrl', [
if ($scope.gaugeNames.length) {
refreshData();
} else {
// ideally wouldn't need to refreshData here, but this seems a rare condition (to de-select all gauges)
// and need some way to clear the last gauge from the chart, and this is easy
refreshData();
$scope.chartNoData = true;
}
}
Expand Down

0 comments on commit 1afe244

Please sign in to comment.