Invoice Details: Improve payments list and print view (#4817)

Closes #4729.

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
This commit is contained in:
d11n
2023-04-04 03:59:14 +02:00
committed by GitHub
parent 2bd1842da1
commit 11f05285a1
6 changed files with 140 additions and 117 deletions

View File

@@ -20,6 +20,7 @@ using BTCPayServer.Models.InvoicingModels;
using BTCPayServer.Models.PaymentRequestViewModels;
using BTCPayServer.Payments;
using BTCPayServer.Payments.Bitcoin;
using BTCPayServer.Payments.Lightning;
using BTCPayServer.Rating;
using BTCPayServer.Services;
using BTCPayServer.Services.Apps;
@@ -256,7 +257,7 @@ namespace BTCPayServer.Controllers
return paymentData switch
{
BitcoinLikePaymentData b => b.Outpoint.ToString(),
LightningPaymentData l => l.Preimage,
LightningLikePaymentData l => l.Preimage?.ToString(),
_ => null
};
}