diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-30 13:13:19 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2025-08-20 00:48:44 +1000 |
| commit | 5b93706343484914370a87fddea29874c8156321 (patch) | |
| tree | 396d53777e433fc23b6c8c3ec68ce095055e3389 /Pages/Component/AboutDialog.razor | |
| parent | a3b729866a5f5ccaf5a7d0fab5663a633475ca49 (diff) | |
Added temporary fix to focus query input for TagSelectionDialog
Diffstat (limited to 'Pages/Component/AboutDialog.razor')
| -rw-r--r-- | Pages/Component/AboutDialog.razor | 14 |
1 files changed, 13 insertions, 1 deletions
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 <Dialog @ref=dialog> <p id="title">@Title</p> @@ -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<AssemblyInformationalVersionAttribute>()? .InformationalVersion; + + public string? Development { + get { + #if DEBUG + return "(Development)"; + #else + return hostingEnvironment.IsDevelopment() ? "(Development)" : null; + #endif + } + } } |
