|
|
@ -11,16 +11,16 @@ public partial class TeamListPanel
|
|
|
|
[Inject]
|
|
|
|
[Inject]
|
|
|
|
private ITeamService TeamService { get; init; }
|
|
|
|
private ITeamService TeamService { get; init; }
|
|
|
|
private bool _isOpen;
|
|
|
|
private bool _isOpen;
|
|
|
|
|
|
|
|
private MudForm form;
|
|
|
|
|
|
|
|
bool success;
|
|
|
|
|
|
|
|
string[] errors = { };
|
|
|
|
|
|
|
|
|
|
|
|
private string? FormName { get; set; }
|
|
|
|
private string? FormName { get; set; }
|
|
|
|
private string? FormPicture { get; set; }
|
|
|
|
private string? FormPicture { get; set; }
|
|
|
|
private string? FormMainColor { get; set; }
|
|
|
|
private string? FormMainColor { get; set; }
|
|
|
|
private string? FormSecondaryColor { get; set; }
|
|
|
|
private string? FormSecondaryColor { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private MudForm form;
|
|
|
|
|
|
|
|
bool success;
|
|
|
|
|
|
|
|
string[] errors = { };
|
|
|
|
|
|
|
|
MudTextField<string> pwField1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async Task<GridData<Team>> GetTeamsFromServer(GridState<Team> state)
|
|
|
|
private async Task<GridData<Team>> GetTeamsFromServer(GridState<Team> state)
|
|
|
@ -33,17 +33,20 @@ public partial class TeamListPanel
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private void ToggleOpen()
|
|
|
|
private void ToggleOpen()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_isOpen)
|
|
|
|
_isOpen = !(_isOpen);
|
|
|
|
_isOpen = false;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
_isOpen = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async void AddTeam()
|
|
|
|
private async void AddTeam()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await TeamService.AddTeam(FormName!,FormPicture!,FormMainColor!,FormSecondaryColor!);
|
|
|
|
await TeamService.AddTeam(FormName!,FormPicture!,FormMainColor!,FormSecondaryColor!);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void AddTeamConfirmed()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
AddTeam();
|
|
|
|
|
|
|
|
ToggleOpen();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|