Skip to content

Commit

Permalink
Always call the callback when returning Users for a given Role
Browse files Browse the repository at this point in the history
Fix for #972

Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Nov 20, 2017
1 parent c620e03 commit fccbb22
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.ArrayList;
import java.util.List;

import com.extjs.gxt.ui.client.data.BasePagingLoadResult;
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import org.eclipse.kapua.app.console.module.api.client.ui.grid.EntityGrid;
import org.eclipse.kapua.app.console.module.api.client.ui.view.AbstractEntityView;
Expand Down Expand Up @@ -56,6 +57,8 @@ protected void load(Object loadConfig,
AsyncCallback<PagingLoadResult<GwtUser>> callback) {
if (selectedRole != null) {
USER_SERVICE.getUsersForRole((PagingLoadConfig) loadConfig, query, callback);
} else {
callback.onSuccess(new BasePagingLoadResult<GwtUser>(new ArrayList<GwtUser>(), 0, 0));
}
}

Expand Down

0 comments on commit fccbb22

Please sign in to comment.