Compare commits
No commits in common. "0ae9ef291ec96513afb88c16983f15305aab3467" and "345253b49134c835350266394395c8b4a0fd23fe" have entirely different histories.
0ae9ef291e
...
345253b491
|
|
@ -92,21 +92,18 @@
|
||||||
|
|
||||||
private List<DayParticipantDto> _availableParticipants = [];
|
private List<DayParticipantDto> _availableParticipants = [];
|
||||||
private HashSet<Guid> _selectedIds = new();
|
private HashSet<Guid> _selectedIds = new();
|
||||||
private bool _initialized;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected override async Task OnParametersSetAsync()
|
protected override async Task OnParametersSetAsync()
|
||||||
{
|
{
|
||||||
_availableParticipants = AvailableParticipants.ToList();
|
_availableParticipants = AvailableParticipants.ToList();
|
||||||
_selectedIds = new HashSet<Guid>(SelectedParticipantIds);
|
_selectedIds = new HashSet<Guid>(SelectedParticipantIds);
|
||||||
|
|
||||||
// Auto-select all only on first load when none selected
|
// Auto-select all if none selected
|
||||||
if (!_initialized && _selectedIds.Count == 0 && _availableParticipants.Count > 0)
|
if (_selectedIds.Count == 0 && _availableParticipants.Count > 0)
|
||||||
{
|
{
|
||||||
_initialized = true;
|
|
||||||
await SelectAll();
|
await SelectAll();
|
||||||
}
|
}
|
||||||
_initialized = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ToggleParticipant(Guid personId)
|
private async Task ToggleParticipant(Guid personId)
|
||||||
|
|
|
||||||
|
|
@ -544,9 +544,9 @@ else
|
||||||
|
|
||||||
private static string GetNextStatusLabel(DayStatus status) => status switch
|
private static string GetNextStatusLabel(DayStatus status) => status switch
|
||||||
{
|
{
|
||||||
DayStatus.New => "Spieltag starten",
|
DayStatus.New => "Starten",
|
||||||
DayStatus.Started => "Spieltag abschliessen",
|
DayStatus.Started => "Abschließen",
|
||||||
DayStatus.Postponed => "Spieltag fortsetzen",
|
DayStatus.Postponed => "Fortsetzen",
|
||||||
_ => ""
|
_ => ""
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue