Compare commits
No commits in common. "3e107950fedbb206d5a155b9b8c8282f62fa8060" and "fedc0c544a4245edb20f53285bdf270982a42658" have entirely different histories.
3e107950fe
...
fedc0c544a
@ -11,21 +11,9 @@
|
||||
|
||||
@if (CurrentSession.LoadGame != null)
|
||||
{
|
||||
<h1>Vorheriges Quiz</h1>
|
||||
<h1>Vorherigen Lauf fortsetzen</h1>
|
||||
<div>@CurrentSession.LoadGame.Title</div>
|
||||
|
||||
@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-primary" type="button" @onclick="() => StartQuiz(CurrentSession.LoadGame)">Fortsetzen</button>
|
||||
<button class="btn btn-outline-danger" type="button" @onclick="DeleteGameState">Löschen</button>
|
||||
}
|
||||
|
||||
|
||||
@ -126,13 +126,11 @@ else
|
||||
if (CurrentSession.LoadGame.QuestionAnswers == null) CurrentSession.LoadGame.QuestionAnswers = new();
|
||||
if (CurrentSession.LoadGame.CurrentQuestion != null)
|
||||
{
|
||||
CurrentSession.LoadGame.QuestionAnswers.Add(new(CurrentSession.LoadGame.CurrentQuestion));
|
||||
foreach (Answer aw in SelectedAnswers)
|
||||
CurrentSession.LoadGame.QuestionAnswers.Add(new(CurrentSession.LoadGame.CurrentQuestion)
|
||||
{
|
||||
CurrentSession.LoadGame.QuestionAnswers[^1].GivenAnswers.Add(aw);
|
||||
GivenAnswers = SelectedAnswers,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
SelectedAnswers.Clear();
|
||||
CurrentSession.LoadGame.NextQuestion();
|
||||
await CurrentSession.SaveAsync();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user