mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
Added TODOs for place redirect improvements
This commit is contained in:
1 parent
f314c1e317
commit
ee46f44ebd
1 file changed
+4
+4
@@ -95,6 +95,9 @@ public class ApplicationActivityMapper implements ActivityMapper {
|
|||||||
EventContext eventContext = new EventContext().withId(eventId);
|
EventContext eventContext = new EventContext().withId(eventId);
|
||||||
String regattaId = place.getLeaderboardIdAsNameString();
|
String regattaId = place.getLeaderboardIdAsNameString();
|
||||||
boolean hasRegattaId = (regattaId != null && !regattaId.isEmpty());
|
boolean hasRegattaId = (regattaId != null && !regattaId.isEmpty());
|
||||||
|
|
||||||
|
// TODO evaluate additional parameters
|
||||||
|
|
||||||
if(hasRegattaId) {
|
if(hasRegattaId) {
|
||||||
switch (place.getNavigationTab()) {
|
switch (place.getNavigationTab()) {
|
||||||
case CompetitorAnalytics:
|
case CompetitorAnalytics:
|
||||||
@@ -129,6 +132,7 @@ public class ApplicationActivityMapper implements ActivityMapper {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (place.getNavigationTab()) {
|
switch (place.getNavigationTab()) {
|
||||||
|
// TODO some places aren't implemented yet
|
||||||
case Media:
|
case Media:
|
||||||
return new MultiregattaMediaPlace(eventContext);
|
return new MultiregattaMediaPlace(eventContext);
|
||||||
case Overview:
|
case Overview:
|
||||||
|
|||||||
Reference in new issue
Block a user