Clean up "Authorizing" message on page load

This commit is contained in:
Neil Brommer 2021-12-08 22:24:42 -08:00
parent c1387fc8ea
commit 8a5e54d17c
3 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,12 @@
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData">
<Authorizing>
<div class="text-center authorizingContainer">
<div class="loading loading-lg"></div>
Authorizing...
</div>
</Authorizing>
<NotAuthorized>
@if (!context.User.Identity?.IsAuthenticated ?? false)
{

View file

@ -47,6 +47,14 @@
align-items: center;
}
.authorizingContainer {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#sidebar {
display: flex;