Fertige Quizze werden jetzt mit "Ergebnisse anzeigen" statt "Fortsetzen" angezeigt

This commit is contained in:
BuildTools 2024-09-05 20:16:23 +02:00
parent fedc0c544a
commit e0649f503f

View File

@ -11,9 +11,21 @@
@if (CurrentSession.LoadGame != null)
{
<h1>Vorherigen Lauf fortsetzen</h1>
<h1>Vorheriges Quiz</h1>
<div>@CurrentSession.LoadGame.Title</div>
<button class="btn btn-primary" type="button" @onclick="() => StartQuiz(CurrentSession.LoadGame)">Fortsetzen</button>
@if (CurrentSession.LoadGame.Questions?.Count == 0 && CurrentSession.LoadGame.QuestionAnswers != null)
{
<button class="btn btn-primary" type="button" @onclick="() => StartQuiz(CurrentSession.LoadGame)">
Ergebnisse ansehen</button>
}
else
{
<button class="btn btn-primary" type="button" @onclick="() => StartQuiz(CurrentSession.LoadGame)">
Fortsetzen
</button>
}
<button class="btn btn-outline-danger" type="button" @onclick="DeleteGameState">Löschen</button>
}
@ -34,7 +46,7 @@
<Body>
@if (SelectedQuiz != null && NewGame != null)
{
@* <div class="mb-3">
@* <div class="mb-3">
<label for="btngrpMode" class="form-label">Modus</label>
<div class="btn-group form-control" id="btngrpMode">
<a href="#" @onclick="() => NewGame.Mode = GameState.QuizMode.Practice" class="btn @(NewGame.Mode == GameState.QuizMode.Practice ? "btn-primary active" : "btn-outline-primary")">Üben</a>
@ -57,7 +69,7 @@
<input type="range" min="1" max="@QuestionCountMax" @bind="@QuestionCountValue" class="form-range" id="rngQuestionCount">
</div>
@* <div class="mb-3">
@* <div class="mb-3">
<label for="txtName" class="form-label">Name</label>
<input @bind="NewGame.Username" class="form-control" type="text" placeholder="(optional)" id="txtName" />
</div> *@