|
|
|
@ -11,16 +11,16 @@ public partial class TeamListPanel
|
|
|
|
|
[Inject]
|
|
|
|
|
private ITeamService TeamService { get; init; }
|
|
|
|
|
private bool _isOpen;
|
|
|
|
|
private MudForm form;
|
|
|
|
|
bool success;
|
|
|
|
|
string[] errors = { };
|
|
|
|
|
|
|
|
|
|
private string? FormName { get; set; }
|
|
|
|
|
private string? FormPicture { get; set; }
|
|
|
|
|
private string? FormMainColor { 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)
|
|
|
|
@ -34,16 +34,19 @@ public partial class TeamListPanel
|
|
|
|
|
}
|
|
|
|
|
private void ToggleOpen()
|
|
|
|
|
{
|
|
|
|
|
if (_isOpen)
|
|
|
|
|
_isOpen = false;
|
|
|
|
|
else
|
|
|
|
|
_isOpen = true;
|
|
|
|
|
_isOpen = !(_isOpen);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async void AddTeam()
|
|
|
|
|
{
|
|
|
|
|
await TeamService.AddTeam(FormName!,FormPicture!,FormMainColor!,FormSecondaryColor!);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void AddTeamConfirmed()
|
|
|
|
|
{
|
|
|
|
|
AddTeam();
|
|
|
|
|
ToggleOpen();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|