Bug 4032: UserStatusEventHandler is now aware if a user is authenticated

when the page is open or if a user was already authenticated when
loading the page
This commit is contained in:
Steffen Schaefer
2017-07-10 08:23:31 +02:00
parent c60a4b3411
commit 76c2876a2f
10 changed files with 28 additions and 22 deletions
@@ -161,7 +161,7 @@ public class AdminConsolePanel extends DockLayoutPanel implements HandleTabSelec
this.panelsByWidget = new HashMap<>();
getUserService().addUserStatusEventHandler(new UserStatusEventHandler() {
@Override
public void onUserStatusChange(UserDTO user) {
public void onUserStatusChange(UserDTO user, boolean preAuthenticated) {
updateTabDisplayForCurrentUser(user);
}
});