mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
Merge remote-tracking branch 'server/master'
This commit is contained in:
commit
68d242ad60
1 file changed
+5
-3
+5
-3
@@ -424,7 +424,7 @@ public class LeaderboardGroupConfigPanel extends AbstractRegattaPanel implements
|
||||
}
|
||||
|
||||
if (Window.confirm(messageBuilder.toString())) {
|
||||
removeGroups(groupsSelectionModel.getSelectedSet());
|
||||
removeLeaderboardGroups(groupsSelectionModel.getSelectedSet());
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -682,7 +682,7 @@ public class LeaderboardGroupConfigPanel extends AbstractRegattaPanel implements
|
||||
});
|
||||
}
|
||||
|
||||
private void removeGroups(final Collection<LeaderboardGroupDTO> groups) {
|
||||
private void removeLeaderboardGroups(final Collection<LeaderboardGroupDTO> groups) {
|
||||
if (!groups.isEmpty()) {
|
||||
Set<String> groupNames = new HashSet<String>();
|
||||
for (LeaderboardGroupDTO group : groups) {
|
||||
@@ -705,7 +705,9 @@ public class LeaderboardGroupConfigPanel extends AbstractRegattaPanel implements
|
||||
}
|
||||
|
||||
private void removeLeaderboardGroup(final LeaderboardGroupDTO group) {
|
||||
sailingService.removeLeaderboardGroups(Collections.singleton(group.getName()), new AsyncCallback<Void>() {
|
||||
Set<String> groups = new HashSet<String>();
|
||||
groups.add(group.getName());
|
||||
sailingService.removeLeaderboardGroups(groups, new AsyncCallback<Void>() {
|
||||
@Override
|
||||
public void onFailure(Throwable t) {
|
||||
errorReporter.reportError("Error trying to remove leaderboard group " + group.getName() + ": "
|
||||
|
||||
Reference in new issue
Block a user