auto update
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m8s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m8s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user