Revision d8b1c9ce
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/toolbar/RegistrationToolbar.java | ||
---|---|---|
87 | 87 |
|
88 | 88 |
@EventListener |
89 | 89 |
public void onAuthenticationSuccessEvent(AuthenticationSuccessEvent event){ |
90 |
updateAuthenticationButtons(); |
|
90 |
boolean isInitialized = userButton != null; |
|
91 |
// The RegistrationToolbar is being initialize even if not needed only because it is a EventListener |
|
92 |
// which causes Spring to initialize it. |
|
93 |
// TODO After switching to an other event bus this check can be removed |
|
94 |
if(isInitialized){ |
|
95 |
updateAuthenticationButtons(); |
|
96 |
} |
|
91 | 97 |
} |
92 | 98 |
|
93 | 99 |
/** |
Also available in: Unified diff
flexible choosing of the viewDisplay per UI