Skip to content

Commit

Permalink
fix: Do not throw if re-setting the login view (#19996) (#20003)
Browse files Browse the repository at this point in the history
Fixes #19910

Co-authored-by: Artur <[email protected]>
  • Loading branch information
vaadin-bot and Artur- authored Sep 20, 2024
1 parent 38d4b2b commit b2c0621
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ public final boolean isEnabled() {
* the Flow view to use as login view
*/
public final void setLoginView(Class<? extends Component> loginView) {
if (loginView == this.loginView) {
// Probably hot reload
return;
}
throwIfLoginViewSet();
this.loginView = loginView;
}
Expand All @@ -210,6 +214,11 @@ protected Class<? extends Component> getLoginView() {
* the frontend view to use as login view
*/
public void setLoginView(String loginUrl) {
if (loginUrl == this.loginUrl) {
// Probably hot reload
return;
}

throwIfLoginViewSet();
this.loginUrl = loginUrl;
}
Expand Down

0 comments on commit b2c0621

Please sign in to comment.