Minor UI improvements (#2606)

* Added "Checkout" button to invoice detail page

* Added missing icon

All other pages have a "plus" icon on the primary button, except this page

* Button icons are always in front, not after like here was
This commit is contained in:
Wouter Samaey
2021-06-24 12:52:41 +02:00
committed by GitHub
parent 3338dcac1c
commit 2ea3baf36e
4 changed files with 19 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ namespace BTCPayServer.Controllers
PosData = PosDataParser.ParsePosData(invoice.Metadata.PosData),
Archived = invoice.Archived,
CanRefund = CanRefund(invoice.GetInvoiceState()),
ShowCheckout = invoice.Status == InvoiceStatusLegacy.New,
Deliveries = (await _InvoiceRepository.GetWebhookDeliveries(invoiceId))
.Select(c => new Models.StoreViewModels.DeliveryViewModel(c))
.ToList()