mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 11:50:05 +02:00
chore: request language optimised
This commit is contained in:
1 parent
4b5b12e87d
commit
68faee2d23
8 files changed
+45
-15
No files matched your search
@@ -32,7 +32,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
|
||||
public List<SearchItem> FilteredList { get; set; } = new();
|
||||
|
||||
//public RealmType CurrentRealmType { get; set; } = RealmType.Eu;
|
||||
public RealmType CurrentRealmType { get; set; } = RealmType.Eu;
|
||||
|
||||
public long CurrentValue { get; set; }
|
||||
|
||||
@@ -40,7 +40,6 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
|
||||
public async Task OnSearchTextChange(string value)
|
||||
{
|
||||
var env = Environment.GetEnvironmentVariable("USE_GRAPH_QL_MOCK");
|
||||
if (DialogType == DialogType.FindPlayer && value.Length < 3)
|
||||
{
|
||||
return;
|
||||
@@ -52,7 +51,7 @@ namespace WotBlitzStatisticsPro.Blazor.Pages
|
||||
|
||||
// ToDo: Move this call to a service
|
||||
var accounts =
|
||||
await GraphQlBackendService.FindPlayers(value, RealmType.Ru, RequestLanguage.En);
|
||||
await GraphQlBackendService.FindPlayers(value, CurrentRealmType);
|
||||
|
||||
if (accounts != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user