mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
feat: split search components
This commit is contained in:
1 parent
b928e0fec9
commit
6f7a7609ac
6 files changed
+84
-29
No files matched your search
@@ -16,18 +16,32 @@
|
||||
</div>
|
||||
</div>
|
||||
<RadzenProgressBar Value="100" ShowValue="false" Mode="ProgressBarMode.Indeterminate"
|
||||
Visible="@ComponentBusy"
|
||||
Style="width: 100%; margin-top: 10px;" />
|
||||
<RadzenListBox @bind-Value=@CurrentValue
|
||||
Data=@FilteredList
|
||||
ValueProperty="ItemId"
|
||||
Style="height:330px; width: 100%; margin-top: 10px;"
|
||||
Visible="@(!ComponentBusy)">
|
||||
<Template>
|
||||
<!--ToDo: Create new component that will show nick[clan] {WinRate with color}, {battles count with translatable word "battles"}. And another component for Clans-->
|
||||
@(((SearchItem) context).ItemName) | accountId: @(((SearchItem) context).ItemId)
|
||||
</Template>
|
||||
</RadzenListBox>
|
||||
Visible="@ComponentBusy"
|
||||
Style="width: 100%; margin-top: 10px;" />
|
||||
@if (DialogType == DialogType.FindPlayer)
|
||||
{
|
||||
<RadzenListBox @bind-Value=@CurrentValue
|
||||
Data=@PlayersList
|
||||
ValueProperty="AccountId"
|
||||
Style="height: 330px; width: 100%; margin-top: 10px;"
|
||||
Visible="@(!ComponentBusy)">
|
||||
<Template>
|
||||
<FindPlayerListItem Player="@((IFindPlayers_Players) context)"></FindPlayerListItem>
|
||||
</Template>
|
||||
</RadzenListBox>
|
||||
}
|
||||
@if (DialogType == DialogType.FindClan)
|
||||
{
|
||||
<RadzenListBox @bind-Value=@CurrentValue
|
||||
Data=@ClansList
|
||||
ValueProperty="ClanId"
|
||||
Style="height: 330px; width: 100%; margin-top: 10px;"
|
||||
Visible="@(!ComponentBusy)">
|
||||
<Template>
|
||||
<FindClanListItem Clan="((IFindClans_Clans)context)"></FindClanListItem>
|
||||
</Template>
|
||||
</RadzenListBox>
|
||||
}
|
||||
<RadzenButton Click=@(args => OnOkButtonClick())
|
||||
Text="Ok"
|
||||
Visible="@(!ComponentBusy)"
|
||||
|
||||
Reference in new issue
Block a user