fix: use DayState.AvailablePersons in game boards
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
fcb46ff387
commit
c10329c468
|
|
@ -3,14 +3,14 @@
|
||||||
@using Koogle.Application.Games
|
@using Koogle.Application.Games
|
||||||
@using Koogle.Application.Games.Shit
|
@using Koogle.Application.Games.Shit
|
||||||
@using Koogle.Web.Store.GameState
|
@using Koogle.Web.Store.GameState
|
||||||
@using Koogle.Web.Store.PersonState
|
@using Koogle.Web.Store.DayState
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
||||||
|
|
||||||
@implements IDisposable
|
@implements IDisposable
|
||||||
@inject IState<GameState> GameState
|
@inject IState<GameState> GameState
|
||||||
@inject IState<PersonState> PersonState
|
@inject IState<DayState> DayState
|
||||||
|
|
||||||
<MudPaper Class="pa-4">
|
<MudPaper Class="pa-4">
|
||||||
<MudText Typo="Typo.h6" Class="mb-4">
|
<MudText Typo="Typo.h6" Class="mb-4">
|
||||||
|
|
@ -198,7 +198,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentPlayerId = gameState.Participants.CurrentPlayerId;
|
var currentPlayerId = gameState.Participants.CurrentPlayerId;
|
||||||
var persons = PersonState.Value.Persons;
|
var persons = DayState.Value.AvailablePersons;
|
||||||
|
|
||||||
foreach (var (playerId, points) in _model.PlayerPoints)
|
foreach (var (playerId, points) in _model.PlayerPoints)
|
||||||
{
|
{
|
||||||
|
|
@ -224,7 +224,7 @@
|
||||||
|
|
||||||
private string GetPlayerName(Guid playerId)
|
private string GetPlayerName(Guid playerId)
|
||||||
{
|
{
|
||||||
var person = PersonState.Value.Persons.FirstOrDefault(p => p.Id == playerId);
|
var person = DayState.Value.AvailablePersons.FirstOrDefault(p => p.Id == playerId);
|
||||||
return person?.Name ?? "Unbekannt";
|
return person?.Name ?? "Unbekannt";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
@using Koogle.Application.Games
|
@using Koogle.Application.Games
|
||||||
@using Koogle.Application.Games.Training
|
@using Koogle.Application.Games.Training
|
||||||
@using Koogle.Web.Store.GameState
|
@using Koogle.Web.Store.GameState
|
||||||
@using Koogle.Web.Store.PersonState
|
@using Koogle.Web.Store.DayState
|
||||||
@using MudBlazor
|
@using MudBlazor
|
||||||
|
|
||||||
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
||||||
|
|
||||||
@implements IDisposable
|
@implements IDisposable
|
||||||
@inject IState<GameState> GameState
|
@inject IState<GameState> GameState
|
||||||
@inject IState<PersonState> PersonState
|
@inject IState<DayState> DayState
|
||||||
|
|
||||||
<MudPaper Class="pa-4">
|
<MudPaper Class="pa-4">
|
||||||
<MudText Typo="Typo.h6" Class="mb-4">
|
<MudText Typo="Typo.h6" Class="mb-4">
|
||||||
|
|
@ -168,7 +168,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentPlayerId = gameState.Participants.CurrentPlayerId;
|
var currentPlayerId = gameState.Participants.CurrentPlayerId;
|
||||||
var persons = PersonState.Value.Persons;
|
var persons = DayState.Value.AvailablePersons;
|
||||||
|
|
||||||
foreach (var (playerId, stats) in model.PlayerStatistics)
|
foreach (var (playerId, stats) in model.PlayerStatistics)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue