From b2052ca30831d3e8624b65f04d512b060c92a55d Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 8 Oct 2020 08:42:45 +0200 Subject: [PATCH] fix invoice exception status not displaying in list fixes #1960 --- BTCPayServer/Controllers/InvoiceController.UI.cs | 2 +- BTCPayServer/Models/InvoicingModels/InvoicesModel.cs | 2 +- BTCPayServer/Views/Invoice/ListInvoices.cshtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index 986e56df0..dc4b9e5a5 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -669,7 +669,7 @@ namespace BTCPayServer.Controllers var state = invoice.GetInvoiceState(); model.Invoices.Add(new InvoiceModel() { - Status = invoice.Status, + Status = state, ShowCheckout = invoice.Status == InvoiceStatus.New, Date = invoice.InvoiceTime, InvoiceId = invoice.Id, diff --git a/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs b/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs index 001ddd973..af6b69ea3 100644 --- a/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs +++ b/BTCPayServer/Models/InvoicingModels/InvoicesModel.cs @@ -19,7 +19,7 @@ namespace BTCPayServer.Models.InvoicingModels public string RedirectUrl { get; set; } public string InvoiceId { get; set; } - public InvoiceStatus Status { get; set; } + public InvoiceState Status { get; set; } public bool CanMarkComplete { get; set; } public bool CanMarkInvalid { get; set; } public bool CanMarkStatus => CanMarkComplete || CanMarkInvalid; diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index cf6cf7815..1d88081f5 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -267,7 +267,7 @@ {