From 4ef19e19cc411dd7bde848a0918ff292bcd1ec87 Mon Sep 17 00:00:00 2001 From: d11n Date: Sat, 25 Feb 2023 14:28:02 +0100 Subject: [PATCH] Checkout v2 fixes (#4705) * Prevent duplicate titles on invoice view * Fix text display of escaped values Fixes #4696. * Fix payment details re-rendering Closes #4683. Closes #4684. * Cleanup --- .../Views/UIInvoice/CheckoutV2.cshtml | 89 ++++++++++--------- BTCPayServer/wwwroot/checkout-v2/checkout.css | 1 + BTCPayServer/wwwroot/checkout-v2/checkout.js | 8 +- 3 files changed, 52 insertions(+), 46 deletions(-) diff --git a/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml b/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml index ca67f7f68..89e3b58f9 100644 --- a/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml +++ b/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml @@ -38,7 +38,7 @@ -
+
-
@Model.ItemDesc
+ @if (!string.IsNullOrEmpty(Model.ItemDesc) && Model.ItemDesc != Model.StoreName) + { +
@Model.ItemDesc
+ } @if (Model.IsUnsetTopUp) { -

+

} else { -

@Model.BtcDue @Model.CryptoCode

+

@Model.BtcDue @Model.CryptoCode

}
@@ -117,7 +120,7 @@
- +
@@ -147,7 +150,7 @@

- +
@@ -176,42 +179,44 @@

-
-
-
-
{{srvModel.orderAmount}} {{ srvModel.cryptoCode }}
-
-
-
-
{{srvModel.orderAmountFiat}}
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+