added app name and version to menu
This commit is contained in:
parent
434c84ce5c
commit
ce86f2acf7
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
@inject CustomAuthenticationStateProvider AuthStateProvider;
|
@using System.Reflection
|
||||||
|
@inject CustomAuthenticationStateProvider AuthStateProvider;
|
||||||
@inject State State;
|
@inject State State;
|
||||||
<AuthorizeView>
|
<AuthorizeView>
|
||||||
<Authorized>
|
<Authorized>
|
||||||
|
@ -42,6 +43,10 @@
|
||||||
<i class="fa-solid fa-door-open"></i>
|
<i class="fa-solid fa-door-open"></i>
|
||||||
<span>Logout</span>
|
<span>Logout</span>
|
||||||
</a>
|
</a>
|
||||||
|
<a class="row medium-opacity">
|
||||||
|
<i class="fa-solid fa-circle-info tiny"></i>
|
||||||
|
<small>@assembly.Name - @assembly.Version?.ToString()</small>
|
||||||
|
</a>
|
||||||
</menu>
|
</menu>
|
||||||
</button>
|
</button>
|
||||||
<small class="s m address"><i class="fa-solid fa-fw fa-at tiny"></i>@State.SelectedAddressName</small>
|
<small class="s m address"><i class="fa-solid fa-fw fa-at tiny"></i>@State.SelectedAddressName</small>
|
||||||
|
@ -76,6 +81,7 @@
|
||||||
</AuthorizeView>
|
</AuthorizeView>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
AssemblyName assembly = Assembly.GetExecutingAssembly().GetName();
|
||||||
public void changeAddress(AddressResponseData address) {
|
public void changeAddress(AddressResponseData address) {
|
||||||
State.SelectedAddress = address;
|
State.SelectedAddress = address;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue