|
4 | 4 | import java.util.List; |
5 | 5 |
|
6 | 6 | import com.google.gwt.core.client.GWT; |
7 | | -import com.sap.sailing.domain.common.abstractlog.TimePointSpecificationFoundInLog; |
8 | 7 | import com.sap.sailing.gwt.ui.adminconsole.AbstractLeaderboardConfigPanel.RaceColumnDTOAndFleetDTOWithNameBasedEquality; |
9 | 8 | import com.sap.sailing.gwt.ui.client.StringMessages; |
10 | | -import com.sap.sse.common.Util.Pair; |
11 | 9 | import com.sap.sse.gwt.client.IconResources; |
12 | 10 | import com.sap.sse.gwt.client.celltable.ImagesBarCell; |
13 | 11 |
|
@@ -60,13 +58,11 @@ protected Iterable<ImageSpec> getImageSpecs() { |
60 | 58 | result.add(new ImageSpec(ACTION_SET_FINISHING_AND_FINISH_TIME, stringMessages.setFinishingAndFinishTime(), makeImagePrototype(resources.blueSmall()))); |
61 | 59 | result.add(new ImageSpec(ACTION_SHOW_RACELOG, stringMessages.raceLog(), makeImagePrototype(resources.flagIcon()))); |
62 | 60 | result.add(new ImageSpec(ACTION_SET_TRACKING_TIMES, stringMessages.setTrackingTimes(), makeImagePrototype(resources.setTrackingTimes()))); |
63 | | - Pair<TimePointSpecificationFoundInLog, TimePointSpecificationFoundInLog> startEndTrackingTime = smartphoneTrackingEventManagementPanel.getTrackingTimesFor(object); |
64 | | - if (startEndTrackingTime == null) { |
| 61 | + boolean isForTracking = object.getA().getRaceLogTrackingInfo(object.getB()).raceLogTrackingState.isForTracking(); |
| 62 | + if (!isForTracking) { |
65 | 63 | result.add(new ImageSpec(ACTION_START_TRACKING, stringMessages.startTracking(), makeImagePrototype(resources.startRaceLogTracking()))); |
66 | 64 | } else { |
67 | | - if (startEndTrackingTime.getB() == null || startEndTrackingTime.getB().getTimePoint() == null) { |
68 | | - result.add(new ImageSpec(ACTION_STOP_TRACKING, stringMessages.stopTracking(), makeImagePrototype(resources.stopRaceLogTracking()))); |
69 | | - } |
| 65 | + result.add(new ImageSpec(ACTION_STOP_TRACKING, stringMessages.stopTracking(), makeImagePrototype(resources.stopRaceLogTracking()))); |
70 | 66 | } |
71 | 67 | if (smartphoneTrackingEventManagementPanel.getSelectedLeaderboard().canBoatsOfCompetitorsChangePerRace) { |
72 | 68 | result.add(new ImageSpec(ACTION_EDIT_COMPETITOR_TO_BOAT_MAPPINGS, stringMessages.actionShowCompetitorToBoatAssignments(), makeImagePrototype(resources.sailboatIcon()))); |
|
0 commit comments