mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
UI: Unify payment request list with invoices (#4294)
Some quick win updates to the payment requests list that unify the display with the invoices list: - Status is displayed as badge - Amount is properly formatted - Expiry date format and ability to switch to relative date
This commit is contained in:
@@ -101,7 +101,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
||||
switch (data.Status)
|
||||
{
|
||||
case Client.Models.PaymentRequestData.PaymentRequestStatus.Pending:
|
||||
Status = ExpiryDate.HasValue ? $"Expires on {ExpiryDate.Value:g}" : "Pending";
|
||||
Status = "Pending";
|
||||
IsPending = true;
|
||||
break;
|
||||
case Client.Models.PaymentRequestData.PaymentRequestStatus.Completed:
|
||||
|
||||
Reference in New Issue
Block a user