From 3e53a890cf62623c278179873a7a022e8c638c09 Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Sat, 16 Apr 2022 20:16:08 -0400 Subject: [PATCH] Fixing missing refresh --- IGP/Dialog/SearchDialogComponent.razor | 6 ++++-- IGP/Portals/SearchPortal.razor | 7 +++++-- Services/Website/SearchService.cs | 2 ++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/IGP/Dialog/SearchDialogComponent.razor b/IGP/Dialog/SearchDialogComponent.razor index 09dc2df..94fc693 100644 --- a/IGP/Dialog/SearchDialogComponent.razor +++ b/IGP/Dialog/SearchDialogComponent.razor @@ -46,8 +46,7 @@ -} - + +} + @code { diff --git a/IGP/Portals/SearchPortal.razor b/IGP/Portals/SearchPortal.razor index 6ec26c7..37f4d99 100644 --- a/IGP/Portals/SearchPortal.razor +++ b/IGP/Portals/SearchPortal.razor @@ -8,12 +8,15 @@ } @code { - + protected override void OnInitialized() { searchService.Subscribe(OnUpdate); + } - searchService.Load(); + protected override async Task OnInitializedAsync() + { + await searchService.Load(); } public void Dispose() diff --git a/Services/Website/SearchService.cs b/Services/Website/SearchService.cs index 52f8dba..45bfa77 100644 --- a/Services/Website/SearchService.cs +++ b/Services/Website/SearchService.cs @@ -101,6 +101,8 @@ public class SearchService : ISearchService } isLoaded = true; + + NotifyDataChanged(); } public bool IsLoaded()