Files
Athou_commafeed/src/main/java/com/commafeed/frontend/pages/WelcomePage.java

27 lines
688 B
Java
Raw Normal View History

2013-04-06 21:38:18 +02:00
package com.commafeed.frontend.pages;
2013-04-07 14:38:08 +02:00
import javax.inject.Inject;
import com.commafeed.backend.dao.ApplicationSettingsService;
2013-04-06 21:38:18 +02:00
import com.commafeed.frontend.pages.components.LoginPanel;
import com.commafeed.frontend.pages.components.RegisterPanel;
@SuppressWarnings("serial")
public class WelcomePage extends BasePage {
2013-04-07 14:38:08 +02:00
@Inject
ApplicationSettingsService applicationSettingsService;
2013-04-06 21:38:18 +02:00
public WelcomePage() {
add(new LoginPanel("login"));
2013-04-07 14:38:08 +02:00
add(new RegisterPanel("register") {
@Override
protected void onConfigure() {
super.onConfigure();
setVisibilityAllowed(applicationSettingsService.get()
.isAllowRegistrations());
}
});
2013-04-06 21:38:18 +02:00
}
}