Merge branch 'release/UpdateCategoryPageOnRefresh'

This commit is contained in:
Samuele Locatelli
2024-02-13 08:59:06 +01:00
4 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>2.0.2402.1219</Version>
<Version>2.0.2402.1308</Version>
<Copyright>Egalware 2021+</Copyright>
</PropertyGroup>
+2 -2
View File
@@ -40,7 +40,7 @@
@* <option value="1">-- Tutti ---</option> *@
@foreach (var item in ResTypeList)
{
<option value="@item.ResTypeId">@item.Name [@item.ResTypeId]</option>
<option value="@item.ResTypeId">@item.Name</option>
}
</select>
<div class="input-group-append">
@@ -71,7 +71,7 @@
{
@foreach (var item in ResTypeList)
{
<option value="@item.ResTypeId">@item.Name [@item.ResTypeId]</option>
<option value="@item.ResTypeId">@item.Name</option>
}
}
</select>
+12
View File
@@ -27,6 +27,7 @@ namespace SHERPA.BBM.UI.Pages
public void Dispose()
{
MService.EA_SearchUpdated -= OnSeachUpdated;
BBMService.ReloadRequest -= BBMService_ReloadRequest;
}
public async void OnSeachUpdated()
@@ -112,9 +113,20 @@ namespace SHERPA.BBM.UI.Pages
MService.ShowSearch = true;
MService.SearchVal = "";
MService.EA_SearchUpdated += OnSeachUpdated;
BBMService.ReloadRequest += BBMService_ReloadRequest;
await ReloadAllData();
}
private async void BBMService_ReloadRequest(object? sender, EventArgs e)
{
ReloadEventArgs currArgs = (ReloadEventArgs)e;
if (!string.IsNullOrEmpty(currArgs.ReloadMessage))
{
await ReloadAllData();
await InvokeAsync(StateHasChanged);
}
}
protected async Task ReloadAllData()
{
await updateTable();
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<UserSecretsId>60fcdaab-6c1e-4bec-9d88-f7727ef1c12c</UserSecretsId>
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
<Version>2.0.2402.1219</Version>
<Version>2.0.2402.1308</Version>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Copyright>Egalware 2021+</Copyright>