Compare commits

..

No commits in common. "0ae9ef291ec96513afb88c16983f15305aab3467" and "345253b49134c835350266394395c8b4a0fd23fe" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View File

@ -92,21 +92,18 @@
private List<DayParticipantDto> _availableParticipants = [];
private HashSet<Guid> _selectedIds = new();
private bool _initialized;
protected override async Task OnParametersSetAsync()
{
_availableParticipants = AvailableParticipants.ToList();
_selectedIds = new HashSet<Guid>(SelectedParticipantIds);
// Auto-select all only on first load when none selected
if (!_initialized && _selectedIds.Count == 0 && _availableParticipants.Count > 0)
// Auto-select all if none selected
if (_selectedIds.Count == 0 && _availableParticipants.Count > 0)
{
_initialized = true;
await SelectAll();
}
_initialized = true;
}
private async Task ToggleParticipant(Guid personId)

View File

@ -544,9 +544,9 @@ else
private static string GetNextStatusLabel(DayStatus status) => status switch
{
DayStatus.New => "Spieltag starten",
DayStatus.Started => "Spieltag abschliessen",
DayStatus.Postponed => "Spieltag fortsetzen",
DayStatus.New => "Starten",
DayStatus.Started => "Abschließen",
DayStatus.Postponed => "Fortsetzen",
_ => ""
};