From f1719ed3d2756ffe23c80b0928dcb851fb662dd5 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Mon, 23 Dec 2024 18:56:22 +0900 Subject: [PATCH] Revert "Add All time to the Time filter, PlanB Assignment (#6514)" (#6519) This reverts commit 79c5ff9ed00407cd08498a348d408e22885967bf. --- BTCPayServer/SearchString.cs | 3 --- BTCPayServer/Views/UIInvoice/ListInvoices.cshtml | 6 ------ 2 files changed, 9 deletions(-) diff --git a/BTCPayServer/SearchString.cs b/BTCPayServer/SearchString.cs index c2eb57fe1..03d9348f3 100644 --- a/BTCPayServer/SearchString.cs +++ b/BTCPayServer/SearchString.cs @@ -127,8 +127,6 @@ namespace BTCPayServer return DateTimeOffset.UtcNow.AddDays(-3).AddMinutes(timezoneOffset); case "-7d": return DateTimeOffset.UtcNow.AddDays(-7).AddMinutes(timezoneOffset); - case "alltime": - return null; // No filtering by date, so return null } // default parsing logic @@ -157,6 +155,5 @@ namespace BTCPayServer var value = str.Trim().TrimStart(FilterSeparator).TrimEnd(FilterSeparator); return string.IsNullOrEmpty(value) ? " " : value; } - } } diff --git a/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml b/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml index 41a518a54..4685e40ca 100644 --- a/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml @@ -250,11 +250,6 @@ { 7 Days } - else if (HasArrayFilter("startdate", "alltime")) - { - All Time - } - else { Custom @@ -269,7 +264,6 @@ Last 24 hours Last 3 days Last 7 days - All Time