Clean up "Authorizing" message on page load
This commit is contained in:
parent
c1387fc8ea
commit
8a5e54d17c
|
@ -18,7 +18,7 @@ This is a rewrite of my [New Tab Page project](https://github.com/NeilBrommer/Ne
|
||||||
- [x] Bookmarks
|
- [x] Bookmarks
|
||||||
- [ ] Manage bookmark containers
|
- [ ] Manage bookmark containers
|
||||||
- [x] Create
|
- [x] Create
|
||||||
- [x] Delete
|
- [ ] Delete
|
||||||
- [ ] Edit
|
- [ ] Edit
|
||||||
- [ ] Manage bookmark groups
|
- [ ] Manage bookmark groups
|
||||||
- [x] Create
|
- [x] Create
|
||||||
|
@ -30,6 +30,8 @@ This is a rewrite of my [New Tab Page project](https://github.com/NeilBrommer/Ne
|
||||||
- [ ] Edit
|
- [ ] Edit
|
||||||
- [x] Use [Refit](https://github.com/reactiveui/refit) for strongly typed API calls
|
- [x] Use [Refit](https://github.com/reactiveui/refit) for strongly typed API calls
|
||||||
- [ ] Support choosing between storing data on the server or in IndexedDB
|
- [ ] Support choosing between storing data on the server or in IndexedDB
|
||||||
|
- [ ] Look into speeding up authorization on page load
|
||||||
|
- https://github.com/dotnet/aspnetcore/issues/31926
|
||||||
|
|
||||||
## Dependancies
|
## Dependancies
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
|
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<AuthorizeRouteView RouteData="@routeData">
|
<AuthorizeRouteView RouteData="@routeData">
|
||||||
|
<Authorizing>
|
||||||
|
<div class="text-center authorizingContainer">
|
||||||
|
<div class="loading loading-lg"></div>
|
||||||
|
Authorizing...
|
||||||
|
</div>
|
||||||
|
</Authorizing>
|
||||||
<NotAuthorized>
|
<NotAuthorized>
|
||||||
@if (!context.User.Identity?.IsAuthenticated ?? false)
|
@if (!context.User.Identity?.IsAuthenticated ?? false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,6 +47,14 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.authorizingContainer {
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in a new issue