mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 20:03:52 +00:00
Fixed navigation in news page
This commit is contained in:
1 parent
4063ab785a
commit
19e0f85436
1 file changed
+7
-6
+7
-6
@@ -9,7 +9,6 @@ import com.google.gwt.user.client.ui.AcceptsOneWidget;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventContext;
|
||||
import com.sap.sailing.gwt.home.client.place.event.regatta.tabs.RegattaLeaderboardPlace;
|
||||
import com.sap.sailing.gwt.home.mobile.app.MobileApplicationClientFactory;
|
||||
import com.sap.sailing.gwt.home.mobile.app.MobilePlacesNavigator;
|
||||
import com.sap.sailing.gwt.home.mobile.partials.updatesBox.NewsItemLinkProvider;
|
||||
import com.sap.sailing.gwt.home.mobile.places.latestnews.LatestNewsView.Presenter;
|
||||
import com.sap.sailing.gwt.home.shared.app.PlaceNavigation;
|
||||
@@ -42,19 +41,21 @@ public class LatestNewsActivity extends AbstractActivity implements Presenter, N
|
||||
.goToPlace();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public PlaceNavigation<?> getNewsEntryPlaceNavigation(NewsEntryDTO entry) {
|
||||
MobilePlacesNavigator navigator = clientFactory.getNavigator();
|
||||
if (entry instanceof LeaderboardNewsEntryDTO) {
|
||||
final LeaderboardNewsEntryDTO dto = (LeaderboardNewsEntryDTO) entry;
|
||||
final String regattaId = dto.getLeaderboardName();
|
||||
navigator.getEventNavigation(new RegattaLeaderboardPlace(new EventContext().withRegattaId(regattaId)),
|
||||
null, false);
|
||||
|
||||
return getRegattaLeaderboardNavigation(dto.getLeaderboardName());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public PlaceNavigation<?> getRegattaLeaderboardNavigation(String leaderboardName) {
|
||||
EventContext ctx = new EventContext(getCtx()).withRegattaId(leaderboardName).withRegattaAnalyticsManager(null);
|
||||
return clientFactory.getNavigator().getEventNavigation(new RegattaLeaderboardPlace(ctx), null, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void gotoNewsPlace(List<NewsEntryDTO> values) {
|
||||
clientFactory.getPlaceController().goTo(new LatestNewsPlace(place.getCtx(), values));
|
||||
|
||||
Reference in new issue
Block a user