Merge branch 'release/UpdateCategoryPageOnRefresh'
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user