Compare commits
2 Commits
345253b491
...
0ae9ef291e
| Author | SHA1 | Date |
|---|---|---|
|
|
0ae9ef291e | |
|
|
745da9e678 |
|
|
@ -92,18 +92,21 @@
|
|||
|
||||
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 if none selected
|
||||
if (_selectedIds.Count == 0 && _availableParticipants.Count > 0)
|
||||
// Auto-select all only on first load when none selected
|
||||
if (!_initialized && _selectedIds.Count == 0 && _availableParticipants.Count > 0)
|
||||
{
|
||||
_initialized = true;
|
||||
await SelectAll();
|
||||
}
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
private async Task ToggleParticipant(Guid personId)
|
||||
|
|
|
|||
|
|
@ -544,9 +544,9 @@ else
|
|||
|
||||
private static string GetNextStatusLabel(DayStatus status) => status switch
|
||||
{
|
||||
DayStatus.New => "Starten",
|
||||
DayStatus.Started => "Abschließen",
|
||||
DayStatus.Postponed => "Fortsetzen",
|
||||
DayStatus.New => "Spieltag starten",
|
||||
DayStatus.Started => "Spieltag abschliessen",
|
||||
DayStatus.Postponed => "Spieltag fortsetzen",
|
||||
_ => ""
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue