mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
Message when no results (fix #94)
This commit is contained in:
parent
ec90f70efd
commit
7a806c44cb
@ -74,7 +74,11 @@ public class ArchiveController implements ContentController, ArchiveView.Archive
|
||||
@Override
|
||||
public void onSuccess(List<Position> result) {
|
||||
positionStore.clear();
|
||||
positionStore.addAll(result);
|
||||
if (result.isEmpty()) {
|
||||
new AlertMessageBox("Error", "No results found for selected period").show();
|
||||
} else {
|
||||
positionStore.addAll(result);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user