diff --git a/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml b/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml index 88c122d2b5..218291641e 100644 --- a/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/UIInvoice/ListInvoices.cshtml @@ -5,12 +5,16 @@ @model InvoicesModel @{ ViewData.SetActivePage(InvoiceNavPages.Index, "Invoices"); + + var hasStatusFilter = HasArrayFilter("status") || HasArrayFilter("exceptionstatus") || HasBooleanFilter("includearchived") || HasBooleanFilter("unusual"); + var hasDateFilter = HasArrayFilter("startdate") || HasArrayFilter("enddate"); + var hasAppFilter = Model.Apps.Any(app => HasArrayFilter("orderid", app.AppOrderId)); } @functions { - private bool HasArrayFilter(string type, string key) => - Model.Search.ContainsFilter(type) && Model.Search.GetFilterArray(type).Contains(key); + private bool HasArrayFilter(string type, string key = null) => + Model.Search.ContainsFilter(type) && (key is null || Model.Search.GetFilterArray(type).Contains(key)); private bool HasBooleanFilter(string key) => Model.Search.ContainsFilter(key) && Model.Search.GetFilterBool(key) is true; @@ -233,45 +237,45 @@ @if (Model.Apps.Any()) { } diff --git a/BTCPayServer/wwwroot/main/bootstrap/bootstrap.css b/BTCPayServer/wwwroot/main/bootstrap/bootstrap.css index 6235f7195d..c59a1df8be 100644 --- a/BTCPayServer/wwwroot/main/bootstrap/bootstrap.css +++ b/BTCPayServer/wwwroot/main/bootstrap/bootstrap.css @@ -11034,6 +11034,7 @@ fieldset:disabled .btn { background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; + padding-right: 2.25rem; } .dropdown-toggle.dropdown-toggle-custom-caret::after { @@ -11247,19 +11248,19 @@ ul:not([class]) li { padding-left: 1rem; } -.dropdown-item.dropdown-item-custom-active { +.dropdown .custom-active { display: inline-flex; align-items: center; gap: var(--btcpay-space-s); } -.dropdown-item.dropdown-item-custom-active::after { +.dropdown .custom-active::after { display: inline-block; margin-left: auto; content: ''; width: 0.5em; height: 0.5em; - background-color: var(--btcpay-dropdown-link-active-bg); + background-color: var(--btcpay-body-bg-active); border-radius: 50%; }