mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Regatta progress on mobile event view can be enabled/disalbed via
experimental features flag
This commit is contained in:
1 parent
c76e2506a5
commit
2f33b6a8cf
2 files changed
+7
-1
No files matched your search
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
+4
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user