Bugfix Login cancel

master
Markus Kreth 7 years ago
parent e704a4886d
commit 67d26bb727
  1. 2
      pom.xml
  2. 8
      src/main/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/ui/MainView.java

@ -4,7 +4,7 @@
<groupId>de.kreth.vaadin.clubhelper</groupId>
<artifactId>vaadin-clubhelper</artifactId>
<version>0.0.3-SNAPSHOT</version>
<version>1.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>vaadin-clubhelper</name>

@ -88,9 +88,15 @@ public class MainView extends HorizontalLayout implements View {
exec.shutdown();
LOGGER.info("Loaded UI and started fetch of Events");
} else {
LOGGER.info("{} already initialized - opening Person View.");
loggedinPerson = (Person) getSession().getAttribute(Person.SESSION_LOGIN);
if (loggedinPerson != null) {
LOGGER.info("{} already initialized - opening Person View.", getClass().getName());
openPersonViewForEvent(eventBusiness.getCurrent());
calendar.setToday(eventBusiness.getCurrent().getStart());
} else {
LOGGER.info("{} already initialized - but not loggedin.", getClass().getName());
}
}
}

Loading…
Cancel
Save