diff --git a/src/Helpers/ModalHelper.cs b/src/Helpers/ModalHelper.cs index 312a487..bd51e93 100644 --- a/src/Helpers/ModalHelper.cs +++ b/src/Helpers/ModalHelper.cs @@ -44,7 +44,7 @@ public static async Task ShowConfirmationModal(IModalService modal, string return response; } - public static void ShowInformationModal(IModalService modal, ThemeInfo theme, string headerstyle, string title, string message, object component, bool admin) + public static void ShowInformationModal(IModalService modal, ThemeInfo theme, string headerstyle, string title, string message, object component, bool admin, string? externalurl = null) { try { @@ -55,6 +55,7 @@ public static void ShowInformationModal(IModalService modal, ThemeInfo theme, st { nameof(InformationModal.headerstyle), headerstyle }, { nameof(InformationModal.component), component }, { nameof(InformationModal.admin), admin }, + { nameof(InformationModal.externalurl), externalurl! }, { "theme", theme } }; diff --git a/src/Pages/Admin.razor b/src/Pages/Admin.razor index d750709..b37a5bd 100644 --- a/src/Pages/Admin.razor +++ b/src/Pages/Admin.razor @@ -57,7 +57,7 @@
- Current version: @appversion + Current version: @appversion (Release Notes)
@if (!String.IsNullOrEmpty(versionalert)) { @@ -78,10 +78,10 @@
    - @foreach(var variable in environmentvariables) - { -
  • @variable.Key: @variable.Value
  • - } + @foreach (var variable in environmentvariables) + { +
  • @variable.Key: @variable.Value
  • + }
@@ -449,6 +449,7 @@ private SiteConfiguration config = ConfigurationHelper.GetConfigurationData(); private string currentuser = String.Empty; private List> environmentvariables = new(); + private string releasenotesurl = String.Empty; protected override async Task OnAfterRenderAsync(bool firstRender) { @@ -459,6 +460,7 @@ if (GeneralHelper.IsNotNull(Assembly.GetEntryAssembly())) { appversion = Assembly.GetEntryAssembly()!.GetCustomAttribute()!.InformationalVersion; + releasenotesurl = "https://github.com/mspnp/AzureNamingTool/wiki/v" + appversion; } servicesData = await ServicesHelper.LoadServicesData(servicesData, true);