mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 08:41:01 +00:00
Simplifications for upcomming events
This commit is contained in:
1 parent
774d17613c
commit
4b33e8fb52
1 file changed
+1
-4
+1
-4
@@ -26,7 +26,6 @@ public class EventsOverviewUpcomingEvent extends Composite {
|
||||
@UiField Anchor eventOverviewLink;
|
||||
@UiField DivElement days;
|
||||
|
||||
private final HomePlacesNavigator navigator;
|
||||
private final PlaceNavigation<EventDefaultPlace> eventNavigation;
|
||||
|
||||
interface UpcomingEventUiBinder extends UiBinder<Widget, EventsOverviewUpcomingEvent> {
|
||||
@@ -35,8 +34,6 @@ public class EventsOverviewUpcomingEvent extends Composite {
|
||||
private static UpcomingEventUiBinder uiBinder = GWT.create(UpcomingEventUiBinder.class);
|
||||
|
||||
public EventsOverviewUpcomingEvent(final EventListEventDTO event, final HomePlacesNavigator navigator) {
|
||||
this.navigator = navigator;
|
||||
|
||||
EventsOverviewUpcomingResources.INSTANCE.css().ensureInjected();
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
|
||||
@@ -51,7 +48,7 @@ public class EventsOverviewUpcomingEvent extends Composite {
|
||||
|
||||
@UiHandler("eventOverviewLink")
|
||||
public void goToEventOverview(ClickEvent e) {
|
||||
navigator.goToPlace(eventNavigation);
|
||||
eventNavigation.goToPlace();
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user