Updated delete logic for voice works.
This commit is contained in:
@@ -13,7 +13,7 @@ else
|
||||
<div class="j-product-items-container">
|
||||
@foreach (var product in Products)
|
||||
{
|
||||
<JProduct Product="@product"></JProduct>
|
||||
<JProduct Product="@product" ProductDeleted="OnProductDeleted"></JProduct>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -21,4 +21,12 @@ else
|
||||
@code {
|
||||
[Parameter]
|
||||
public VoiceWorkSearchResult[]? Products { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public EventCallback ProductDeleted { get; set; }
|
||||
|
||||
private async Task OnProductDeleted()
|
||||
{
|
||||
await ProductDeleted.InvokeAsync();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user