Finalized delete voice work logic.
All checks were successful
ci / build-test (push) Successful in 2m45s
ci / publish-image (push) Successful in 1m54s

This commit is contained in:
2026-05-09 22:19:44 -04:00
parent 5eecba7eec
commit 06d5aa345d
7 changed files with 72 additions and 9 deletions

View File

@@ -17,7 +17,7 @@
<h3>Voice Works</h3>
<VoiceWorkFilters Value="@State" ValueChanged="UpdateAsync" />
<JProductCollection Products="Result?.Items"></JProductCollection>
<JProductCollection Products="Result?.Items" ProductDeleted="OnProductDeleted"></JProductCollection>
@if (Result is not null)
{
@@ -69,4 +69,9 @@
protected override Task<SearchResult<VoiceWorkSearchResult>> ExecuteSearchAsync(VoiceWorkFilterState state, CancellationToken ct)
=> Client.SearchAsync(state.ToSearchRequest(), ct).ContinueWith(t => t.Result?.Results ?? new SearchResult<VoiceWorkSearchResult>(), ct);
private async Task OnProductDeleted()
{
_ = RunSearchAsync(false);
}
}