From 010b62116649983dbebe4a0dee9354b67a7bcbc8 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Fri, 12 Jul 2024 16:39:28 +0200 Subject: [PATCH] remove some warnings --- src/iRLeagueManager.Web/Components/InputMarkdown.razor | 2 -- .../Components/Settings/Dialogs/PointSettingsDialog.razor | 2 -- src/iRLeagueManager.Web/Pages/Settings/LeagueSettings.razor | 2 +- src/iRLeagueManager.Web/Pages/Settings/ReviewSettings.razor | 2 +- src/iRLeagueManager.Web/Pages/Settings/Templates.razor.cs | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/iRLeagueManager.Web/Components/InputMarkdown.razor b/src/iRLeagueManager.Web/Components/InputMarkdown.razor index ebe1c5eb..ccbd37e4 100644 --- a/src/iRLeagueManager.Web/Components/InputMarkdown.razor +++ b/src/iRLeagueManager.Web/Components/InputMarkdown.razor @@ -21,8 +21,6 @@ @code { - private string uuid = "1"; - protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out string result, [NotNullWhen(false)] out string? validationErrorMessage) { validationErrorMessage = null; diff --git a/src/iRLeagueManager.Web/Components/Settings/Dialogs/PointSettingsDialog.razor b/src/iRLeagueManager.Web/Components/Settings/Dialogs/PointSettingsDialog.razor index 51672489..ddc21e81 100644 --- a/src/iRLeagueManager.Web/Components/Settings/Dialogs/PointSettingsDialog.razor +++ b/src/iRLeagueManager.Web/Components/Settings/Dialogs/PointSettingsDialog.razor @@ -142,8 +142,6 @@ } } - private bool formulaHelpOpen = false; - protected override void OnParametersSet() { base.OnParametersSet(); diff --git a/src/iRLeagueManager.Web/Pages/Settings/LeagueSettings.razor b/src/iRLeagueManager.Web/Pages/Settings/LeagueSettings.razor index d7871867..4d5208f5 100644 --- a/src/iRLeagueManager.Web/Pages/Settings/LeagueSettings.razor +++ b/src/iRLeagueManager.Web/Pages/Settings/LeagueSettings.razor @@ -95,7 +95,7 @@ private bool showLeagueHiddenAlert = true; private bool seasonsExpanded = false; - private bool Loading => Bind(League, x => x.Loading); + private new bool Loading => Bind(League, x => x.Loading); private StatusResultValidator? ResultValidator { get; set; } diff --git a/src/iRLeagueManager.Web/Pages/Settings/ReviewSettings.razor b/src/iRLeagueManager.Web/Pages/Settings/ReviewSettings.razor index 50156f74..f74fc0de 100644 --- a/src/iRLeagueManager.Web/Pages/Settings/ReviewSettings.razor +++ b/src/iRLeagueManager.Web/Pages/Settings/ReviewSettings.razor @@ -69,7 +69,7 @@ @code { - private bool Loading => Bind(League, x => x.Loading) || Bind(Reviews, x => x.Loading); + private new bool Loading => Bind(League, x => x.Loading) || Bind(Reviews, x => x.Loading); private bool categoriesExpanded = false; diff --git a/src/iRLeagueManager.Web/Pages/Settings/Templates.razor.cs b/src/iRLeagueManager.Web/Pages/Settings/Templates.razor.cs index c9de3207..b2e8519d 100644 --- a/src/iRLeagueManager.Web/Pages/Settings/Templates.razor.cs +++ b/src/iRLeagueManager.Web/Pages/Settings/Templates.razor.cs @@ -19,7 +19,7 @@ public partial class Templates : LeagueComponentBase private string Status { get; set; } = string.Empty; private string Message { get; set; } = string.Empty; private IEnumerable Errors { get; set; } = Array.Empty(); - private bool Loading { get; set; } = false; + private new bool Loading { get; set; } = false; private enum TemplateType {