mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14: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:
@@ -74,7 +74,15 @@ namespace BTCPayServer.Controllers
|
||||
IncludeArchived = includeArchived
|
||||
});
|
||||
|
||||
model.Items = result.Select(data => new ViewPaymentRequestViewModel(data)).ToList();
|
||||
model.Items = result.Select(data =>
|
||||
{
|
||||
var blob = data.GetBlob();
|
||||
return new ViewPaymentRequestViewModel(data)
|
||||
{
|
||||
AmountFormatted = _Currencies.FormatCurrency(blob.Amount, blob.Currency)
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user