Skip to content

Commit

Permalink
#353 avoid occasional angular exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed May 24, 2013
1 parent 79bba61 commit 4852d83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hawtio-web/src/main/webapp/app/camel/html/createEndpoint.html
@@ -1,15 +1,15 @@
<div ng-controller="Camel.EndpointController" ng-switch="componentNames">
<div ng-switch-when="null">
<ng-include src="'app/camel/html/createEndpointURL.html'"></ng-include>
</div>
<div ng-switch-default="">
<div ng-controller="Camel.EndpointController" ng-switch="hasComponentNames">
<div ng-switch-when="true">
<tabs>
<pane heading="URL">
<ng-include src="'app/camel/html/createEndpointURL.html'"></ng-include>
</pane>
<pane heading="Components" ng-show="componentNames">
<pane heading="Components">
<ng-include src="'app/camel/html/createEndpointWizard.html'"></ng-include>
</pane>
</tabs>
</div>
<div ng-switch-default="false">
<ng-include src="'app/camel/html/createEndpointURL.html'"></ng-include>
</div>
</div>
1 change: 1 addition & 0 deletions hawtio-web/src/main/webapp/app/camel/js/endpoint.ts
Expand Up @@ -74,6 +74,7 @@ module Camel {

function onComponents(response) {
$scope.componentNames = response;
$scope.hasComponentNames = $scope.componentNames ? true : false;
Core.$apply($scope);
}

Expand Down

0 comments on commit 4852d83

Please sign in to comment.