Count9 #7

Merged
tygozwolle merged 20 commits from count9 into master 2026-08-03 12:17:13 +02:00
Showing only changes of commit 6371826f5e - Show all commits
@@ -3,6 +3,7 @@
@inject IRadiusService RadiusService
@inject AdminAuthService AuthService
@inject NavigationManager NavManager
@implements IDisposable
<div style="max-width: 1280px; margin: 0 auto;">
@if (!AuthService.IsAuthenticated)
@@ -406,6 +407,7 @@
private string activeTab = "users";
private string searchQuery = string.Empty;
private string? notificationMessage;
private System.Threading.Timer? autoRefreshTimer;
private SystemConfigDto? config;
private List<UserUsageDto> users = new();
@@ -434,7 +436,24 @@
await LoadDataAsync();
StateHasChanged();
autoRefreshTimer = new System.Threading.Timer(async _ =>
{
await InvokeAsync(async () =>
{
if (AuthService.IsAuthenticated)
{
await LoadDataAsync();
StateHasChanged();
}
});
}, null, TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(10));
}
}
public void Dispose()
{
autoRefreshTimer?.Dispose();
}
private async Task LogoutAdmin()