Skip to content

Commit

Permalink
Fix #519
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Sep 4, 2013
1 parent 5d16539 commit d5538c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions hawtio-web/src/main/webapp/app/core/js/app.ts
Expand Up @@ -92,6 +92,10 @@ module Core {
return userDetails.username !== null && userDetails.username !== 'public';
};

$scope.showLogout = () => {
return $scope.loggedIn() && userDetails.username !== '';
}

$scope.logout = () => {
$scope.confirmLogout = true;
};
Expand Down
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/index.html
Expand Up @@ -72,7 +72,7 @@
<i class="icon-cogs"></i>
</a>
</li>
<li ng-show="loggedIn()">
<li ng-show="showLogout()">
<a href="" title="Log out" data-placement="bottom" ng-click="logout()">
<i class="icon-signout"></i>
</a>
Expand Down

0 comments on commit d5538c7

Please sign in to comment.