-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#218 - Visual state of <LoginInfo while not authenticated or loading …
…profile.
- Loading branch information
Showing
4 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
@using Money.Layouts | ||
@inherits LoginInfoBase | ||
|
||
<form class="navbar-right" onsubmit="@OnLogoutAsync"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li> | ||
<a href="@Navigator.UrlUserManage()"> | ||
<Loading Context="@Loading"> | ||
User: @(Profile?.UserName ?? "---") | ||
</Loading> | ||
</a> | ||
</li> | ||
<li> | ||
<button type="button" class="btn btn-link navbar-btn navbar-link" onclick="@OnLogoutAsync">Log out</button> | ||
</li> | ||
</ul> | ||
</form> | ||
@if (IsAuthenticated || Loading.IsLoading) | ||
{ | ||
<form class="navbar-right" onsubmit="@OnLogoutAsync"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<Loading Context="@Loading"> | ||
<LoadingContent> | ||
<li> | ||
<span class="navbar-text"> | ||
Loading... | ||
</span> | ||
</li> | ||
</LoadingContent> | ||
<ChildContent> | ||
@if (Profile != null) | ||
{ | ||
<li> | ||
<a href="@Navigator.UrlUserManage()"> | ||
<Icon Identifier="user" /> | ||
@Profile.UserName | ||
</a> | ||
</li> | ||
<li> | ||
<button type="button" class="btn btn-link navbar-btn navbar-link" onclick="@OnLogoutAsync">Log out</button> | ||
</li> | ||
} | ||
</ChildContent> | ||
</Loading> | ||
</ul> | ||
</form> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters