Skip to content

Commit

Permalink
#839: Added clear messages button to Camel tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 13, 2013
1 parent 6791a69 commit d98bff1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hawtio-web/src/main/webapp/app/camel/html/traceRoute.html
Expand Up @@ -13,13 +13,19 @@
</form>
</div>
<div ng-show="tracing">

<form>
<button class="btn btn-info pull-right" type="submit" ng-click="stopTracing()">Stop Tracing</button>
</form>

<div ng-include src="graphView">
</div>

<form>
<button class="btn btn-info pull-right" type="submit" ng-click="clear()">Clear Messages</button>
</form>
<div>&nbsp;</div>
<div ng-include src="tableView">
</div>

</div>
</div>
6 changes: 6 additions & 0 deletions hawtio-web/src/main/webapp/app/camel/js/trace.ts
Expand Up @@ -28,6 +28,12 @@ module Camel {
setTracing(false);
};

$scope.clear = () => {
$scope.messages = [];
// foo
Core.$apply($scope);
};

$scope.$watch('workspace.selection', function () {
if (workspace.moveIfViewInvalid()) return;
$scope.messages = [];
Expand Down

0 comments on commit d98bff1

Please sign in to comment.