Implement SortSelector component

This commit is contained in:
Andrei Zavatski
2019-10-08 22:46:42 +03:00
parent 574170124c
commit 29b0eacc82
8 changed files with 101 additions and 7 deletions

View File

@ -79,6 +79,7 @@ namespace osu.Game.Overlays.Comments
private void getComments()
{
request?.Cancel();
content.Clear();
request = new GetCommentsRequest(type, id, Sort.Value);
request.Success += onSuccess;
api.Queue(request);
@ -86,8 +87,6 @@ namespace osu.Game.Overlays.Comments
private void onSuccess(APICommentsController response)
{
content.Clear();
foreach (var c in response.Comments)
{
if (!c.IsDeleted && c.IsTopLevel)