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

@@ -41,6 +41,19 @@ public abstract class SearchPageBase<TState, TItem> : ComponentBase, IAsyncDispo
_ = RunSearchAsync();
}
//protected async Task Update2Async(TState next, bool scrollToTop)
//{
// if (Equals(next, State))
// return;
// Console.WriteLine("Got here");
// State = next;
// NavigateToState(next);
// _ = RunSearchAsync(scrollToTop);
//}
private void NavigateToState(TState next)
{
string uri = BuildUri(next);
@@ -73,9 +86,12 @@ public abstract class SearchPageBase<TState, TItem> : ComponentBase, IAsyncDispo
_ = RunSearchAsync();
}
private async Task RunSearchAsync()
protected async Task RunSearchAsync(bool scrollTotop = true)
{
await JS.InvokeVoidAsync("pageHelpers.scrollToTop");
if (scrollTotop)
await JS.InvokeVoidAsync("pageHelpers.scrollToTop");
Console.WriteLine("Got here 2");
try
{