about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-04-19 19:54:15 +0200
committerRory& <root@rory.gay>2025-04-19 19:54:15 +0200
commit21e0903bddcdb75aff8e4e87e2035a5f01aea31d (patch)
tree419e8582eaf70a6bf5023b45fb0265400134d86f
parentReduce loglevel for AuthorizedImage, update LibMatrix (a11y) (diff)
downloadMatrixUtils-21e0903bddcdb75aff8e4e87e2035a5f01aea31d.tar.xz
A11Y: Use busy state in index page
-rw-r--r--MatrixUtils.Web/Pages/Index.razor7
1 files 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. </span> } <hr/> -<form> +<form aria-busy="@Busy"> <table> @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 {