added app name and version to menu

This commit is contained in:
Gordon Pedersen 2024-06-24 11:51:27 +10:00
parent 434c84ce5c
commit ce86f2acf7

View file

@ -1,4 +1,5 @@
@inject CustomAuthenticationStateProvider AuthStateProvider;
@using System.Reflection
@inject CustomAuthenticationStateProvider AuthStateProvider;
@inject State State;
<AuthorizeView>
<Authorized>
@ -42,6 +43,10 @@
<i class="fa-solid fa-door-open"></i>
<span>Logout</span>
</a>
<a class="row medium-opacity">
<i class="fa-solid fa-circle-info tiny"></i>
<small>@assembly.Name - @assembly.Version?.ToString()</small>
</a>
</menu>
</button>
<small class="s m address"><i class="fa-solid fa-fw fa-at tiny"></i>@State.SelectedAddressName</small>
@ -76,6 +81,7 @@
</AuthorizeView>
@code {
AssemblyName assembly = Assembly.GetExecutingAssembly().GetName();
public void changeAddress(AddressResponseData address) {
State.SelectedAddress = address;
}