fix : delete
continuous-integration/drone/push Build is passing Details

pull/41/head
Yvan CALATAYUD 1 year ago
parent 2e83563566
commit ef3940f44e

@ -3,7 +3,7 @@
<div class="simple-form">
<p>
Are you sure you want to delete @chapter.Name ?
Are you sure you want to delete ?
</p>
<button @onclick="ConfirmDelete" class="btn btn-primary">Delete</button>

@ -17,13 +17,13 @@ namespace Blazor.Modals
[Parameter]
public int Id { get; set; }
private Chapter chapter = new Chapter();
//private Chapter chapter = new Chapter();
protected override async Task OnInitializedAsync()
{
// Get the chapter
chapter = await DataService.GetById(Id);
}
//protected override async Task OnInitializedAsync()
//{
// // Get the chapter
// chapter = await DataService.GetById(Id);
//}
void ConfirmDelete()
{

Loading…
Cancel
Save