mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-01 18:03:59 +00:00
Removed runnable in loadGroup-Method from LeaderboardGroupPanel
This commit is contained in:
1 parent
c7b66bd452
commit
0ae697c879
1 file changed
+3
-11
+3
-11
@@ -72,24 +72,16 @@ public class LeaderboardGroupPanel extends FormPanel implements HasWelcomeWidget
|
||||
mainPanel = new FlowPanel();
|
||||
mainPanel.setWidth("95%");
|
||||
add(mainPanel);
|
||||
final Runnable buildGUI = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
buildGUI();
|
||||
}
|
||||
};
|
||||
loadGroup(groupName, buildGUI);
|
||||
loadGroup(groupName);
|
||||
}
|
||||
|
||||
private void loadGroup(final String groupName, final Runnable actionsAfterLoading) {
|
||||
private void loadGroup(final String groupName) {
|
||||
sailingService.getLeaderboardGroupByName(groupName, new AsyncCallback<LeaderboardGroupDTO>() {
|
||||
@Override
|
||||
public void onSuccess(LeaderboardGroupDTO group) {
|
||||
if (group != null) {
|
||||
LeaderboardGroupPanel.this.group = group;
|
||||
if (actionsAfterLoading != null) {
|
||||
actionsAfterLoading.run();
|
||||
}
|
||||
buildGUI();
|
||||
} else {
|
||||
errorReporter.reportError(stringConstants.noLeaderboardGroupWithNameFound(groupName));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user