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

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

Loading…
Cancel
Save