Skip to content

Commit

Permalink
gwt: Reset status bar on user logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
calin-iorgulescu committed Jan 19, 2015
1 parent b57698e commit 77ebe6c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public void onAuthenticationChange(AuthenticationEvent event) {
CookieManager.saveUsername(event.getUsername());
displayContent();
} else if (event.getType() == AuthenticationEvent.EventType.ERROR) {
/*
* Reset status bar when the user is logged out.
*/
eventBus.fireEvent(new StatusChangedEvent(StatusChangedEvent.StatusType.RESET, null));
displayLogin();
}
}
Expand Down

0 comments on commit 77ebe6c

Please sign in to comment.