Finalized delete voice work logic.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user