ModalComponent in ModalDialog umbenannt

This commit is contained in:
BuildTools 2024-09-04 18:46:53 +02:00
parent 626f6a88ce
commit e03653de58
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
}
</div>
<ModalComponent @ref="modal">
<ModalDialog @ref="modal">
<Title>
@SelectedQuiz?.Name;
</Title>
@ -57,10 +57,10 @@
<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>
</div> *@
}
</Body>
<Footer>
@ -70,12 +70,12 @@
}
<button class="btn btn-primary" @onclick="CloseDialog">Abbruch</button>
</Footer>
</ModalComponent>
</ModalDialog>
@code {
public List<Quiz> QuizList { get; set; } = new();
private LocalDbContext? DbContext;
private ModalComponent modal = null!;
private ModalDialog modal = null!;
private GameState? NewGame;
private GameState? LoadGame;
private Quiz? SelectedQuiz;