Code coloring invoice states

This commit is contained in:
rockstardev
2019-05-01 15:33:46 -05:00
committed by Nicolas Dorier
parent 1d3ff143d2
commit 4bc03fbf06
3 changed files with 69 additions and 19 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Services.Invoices;
namespace BTCPayServer.Models.InvoicingModels
{
@@ -25,7 +26,8 @@ namespace BTCPayServer.Models.InvoicingModels
public string RedirectUrl { get; set; }
public string InvoiceId { get; set; }
public string Status { get; set; }
public InvoiceStatus Status { get; set; }
public string StatusString { get; set; }
public bool CanMarkComplete { get; set; }
public bool CanMarkInvalid { get; set; }
public bool CanMarkStatus => CanMarkComplete || CanMarkInvalid;