From ce86f2acf7b28b56131370085eac82b6fa5fe147 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Mon, 24 Jun 2024 11:51:27 +1000 Subject: [PATCH] added app name and version to menu --- Components/Layout/AvatarMenu.razor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Components/Layout/AvatarMenu.razor b/Components/Layout/AvatarMenu.razor index c334f0c..c90ce6e 100644 --- a/Components/Layout/AvatarMenu.razor +++ b/Components/Layout/AvatarMenu.razor @@ -1,4 +1,5 @@ -@inject CustomAuthenticationStateProvider AuthStateProvider; +@using System.Reflection +@inject CustomAuthenticationStateProvider AuthStateProvider; @inject State State; @@ -42,6 +43,10 @@ Logout + + + @assembly.Name - @assembly.Version?.ToString() + @State.SelectedAddressName @@ -76,6 +81,7 @@ @code { + AssemblyName assembly = Assembly.GetExecutingAssembly().GetName(); public void changeAddress(AddressResponseData address) { State.SelectedAddress = address; }