From 21e0903bddcdb75aff8e4e87e2035a5f01aea31d Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 19 Apr 2025 19:54:15 +0200 Subject: A11Y: Use busy state in index page --- MatrixUtils.Web/Pages/Index.razor | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MatrixUtils.Web/Pages/Index.razor b/MatrixUtils.Web/Pages/Index.razor index cefd7d5..fd38f28 100644 --- a/MatrixUtils.Web/Pages/Index.razor +++ b/MatrixUtils.Web/Pages/Index.razor @@ -19,7 +19,7 @@ Small collection of tools to do not-so-everyday things. }
-
+ @foreach (var session in _sessions.OrderByDescending(x => x.UserInfo.RoomCount)) { var auth = session.Auth; @@ -137,6 +137,8 @@ Small collection of tools to do not-so-everyday things. private const bool _debug = false; #endif + private bool Busy { get; set; } = true; + private class HomepageSessionInfo : RmuSessionStore.SessionInfo { public UserInfo? UserInfo { get; set; } public ServerVersionResponse? ServerVersion { get; set; } @@ -241,7 +243,8 @@ Small collection of tools to do not-so-everyday things. await Task.WhenAll(tasks); scannedSessions = totalSessions; - await base.OnInitializedAsync(); + Busy = false; + StateHasChanged(); } private class UserInfo { -- cgit 1.5.1