From 5b93706343484914370a87fddea29874c8156321 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 30 Aug 2023 13:13:19 +1000 Subject: Added temporary fix to focus query input for TagSelectionDialog --- Pages/Component/AboutDialog.razor | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Pages/Component/AboutDialog.razor') diff --git a/Pages/Component/AboutDialog.razor b/Pages/Component/AboutDialog.razor index a533fbc..9823761 100644 --- a/Pages/Component/AboutDialog.razor +++ b/Pages/Component/AboutDialog.razor @@ -1,4 +1,6 @@ @using System.Reflection +@using Microsoft.AspNetCore.Hosting +@inject IHostingEnvironment hostingEnvironment

@Title

@@ -686,11 +688,21 @@ public void Hide() => Visible = false; public string Title => - $"HyperBooru v{Version}"; + $"HyperBooru v{Version} {Development}"; public string? Version => GetType() .Assembly .GetCustomAttribute()? .InformationalVersion; + + public string? Development { + get { + #if DEBUG + return "(Development)"; + #else + return hostingEnvironment.IsDevelopment() ? "(Development)" : null; + #endif + } + } } -- cgit v1.3