Files
jsmr/JSMR.UI.Blazor/Components/JProductCollection.razor
Brian Bicknell 5eecba7eec
All checks were successful
ci / build-test (push) Successful in 3m1s
ci / publish-image (push) Successful in 1m58s
Updated delete logic for voice works.
2026-05-09 00:51:10 -04:00

33 lines
632 B
Plaintext

@using JSMR.Application.VoiceWorks.Queries.Search
@if (Products is null)
{
<p>Loading…</p>
}
else if (Products.Length == 0)
{
<p>No results.</p>
}
else
{
<div class="j-product-items-container">
@foreach (var product in Products)
{
<JProduct Product="@product" ProductDeleted="OnProductDeleted"></JProduct>
}
</div>
}
@code {
[Parameter]
public VoiceWorkSearchResult[]? Products { get; set; }
[Parameter]
public EventCallback ProductDeleted { get; set; }
private async Task OnProductDeleted()
{
await ProductDeleted.InvokeAsync();
}
}