From 7c909e94e5e4bfd86fee5355fb39a465e04e3bf9 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Thu, 18 Apr 2024 14:35:38 +0200 Subject: [PATCH] Added `Customization.HideVersion` configuration to hide version in navgation --- Wave/Components/Layout/MainLayout.razor | 5 ++++- Wave/Data/Customization.cs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Wave/Components/Layout/MainLayout.razor b/Wave/Components/Layout/MainLayout.razor index 21527b3..a063351 100644 --- a/Wave/Components/Layout/MainLayout.razor +++ b/Wave/Components/Layout/MainLayout.razor @@ -87,7 +87,10 @@
- + + @if (Customizations.Value.HideVersion is not true) { + + }
diff --git a/Wave/Data/Customization.cs b/Wave/Data/Customization.cs index 48951a7..2790bc0 100644 --- a/Wave/Data/Customization.cs +++ b/Wave/Data/Customization.cs @@ -7,6 +7,7 @@ public class Customization { public string DefaultTheme { get; set; } = ""; public string DefaultLanguage { get; set; } = ""; public bool DefaultNarrowReader { get; set; } = false; + public bool HideVersion { get; set; } = false; public string LogoLink { get; set; } = ""; public string IconLink { get; set; } = ""; public string Footer { get; set; } = "";