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; @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;
} }