Fix sync utenti

This commit is contained in:
2025-12-29 13:45:02 +01:00
parent 5c1d74e04d
commit 37d66c90d2
4 changed files with 59 additions and 26 deletions

View File

@@ -23,7 +23,7 @@
OnSave="() => OpenUserForm(Anag)"
Back="true"
BackOnTop="true"
Title=""
Title="@Anag.CodContact"
ShowProfile="false"/>
@if (IsLoading)
@@ -111,7 +111,7 @@ else
<label class="tab-trigger" for="tab2" @onclick="() => SwitchTab(1)">Commesse</label>
</li>
<li class="tab-item">
<label class="tab-trigger" for="tab3" @onclick="() => SwitchTab(2)">Attivit<EFBFBD></label>
<label class="tab-trigger" for="tab3" @onclick="() => SwitchTab(2)">Attività</label>
</li>
</ul>
</div>
@@ -219,7 +219,7 @@ else
}
</div>
<!-- Tab Attivit<EFBFBD> -->
<!-- Tab Attività -->
<div class="tab-content" style="display: @(ActiveTab == 2 ? "block" : "none")">
@if (ActivityIsLoading)
{
@@ -227,7 +227,7 @@ else
}
else if (ActivityList?.Count == 0)
{
<NoDataAvailable Text="Nessuna attivit<EFBFBD> presente"/>
<NoDataAvailable Text="Nessuna attività presente"/>
}
else if (ActivityList != null)
{
@@ -309,7 +309,7 @@ else
private string _searchTermCommesse = string.Empty;
private List<JtbComt> _filteredCommesse = [];
// Paginazione e filtri per ATTIVIT<EFBFBD>
// Paginazione e filtri per attività
private int _currentPageActivity = 1;
private int _selectedPageSizeActivity = 5;
private string _searchTermActivity = string.Empty;
@@ -381,7 +381,7 @@ else
#endregion
#region Properties per Attivit<EFBFBD>
#region Properties per Attività
private int CurrentPageActivityIndex
{
@@ -445,7 +445,7 @@ else
{
_loadingCts = new CancellationTokenSource();
if (UserState.CodUser?.Equals(CodContact) == true)
if (UserState.CodUser != null && UserState.CodUser.Equals(CodContact))
{
LoadDataFromSession();
}