Regatta progress on mobile event view can be enabled/disalbed via

experimental features flag
This commit is contained in:
Benjamin Barth committed 2015-08-25 13:15:17 +02:00
1 parent c76e2506a5
commit 2f33b6a8cf
2 files changed
+7 -1

No files matched your search

@@ -12,6 +12,7 @@ import com.sap.sailing.gwt.home.mobile.partials.regattaStatus.RegattaStatus;
import com.sap.sailing.gwt.home.mobile.partials.statisticsBox.StatisticsBox;
import com.sap.sailing.gwt.home.mobile.partials.updatesBox.UpdatesBox;
import com.sap.sailing.gwt.home.mobile.places.event.overview.EventOverviewStage;
import com.sap.sailing.gwt.home.shared.ExperimentalFeatures;
import com.sap.sailing.gwt.ui.client.StringMessages;
import com.sap.sailing.gwt.ui.shared.dispatch.event.GetEventOverviewNewsAction;
import com.sap.sailing.gwt.ui.shared.dispatch.event.GetEventOverviewStageAction;
@@ -46,7 +47,8 @@ public class EventViewImpl extends AbstractEventView<EventView.Presenter> implem
private void setupProgress(Panel container) {
eventStepsUi = new EventSteps();
if (!isMultiRegattaEvent()) {
boolean showRegattaProgress = !isMultiRegattaEvent() && ExperimentalFeatures.SHOW_REGATTA_PROGRESS_ON_MOBILE;
if (showRegattaProgress) {
refreshManager.add(eventStepsUi, new GetRegattaWithProgressAction(getEventId(), getRegattaId()));
container.add(eventStepsUi);
}
@@ -25,6 +25,10 @@ public class ExperimentalFeatures {
* Provide option to show races (competition format) on mobile devices
*/
public static final boolean SHOW_RACES_ON_MOBILE = false;
/**
* Provide option to show the regatta progress for single regatta and series event on mobile devices
*/
public static final boolean SHOW_REGATTA_PROGRESS_ON_MOBILE = false;
/**
* Provide button to show the competitor analytics in fullscreen view (work in progress)
*/