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()