From 627ada56b753e3da46a0db45690d689b050d085a Mon Sep 17 00:00:00 2001 From: d11n Date: Fri, 23 Dec 2022 09:04:42 +0100 Subject: [PATCH] Checkout v2: Minor view improvements (#4473) --- .../Views/UIInvoice/Checkout-Cheating.cshtml | 22 +++++++++++++++---- .../Views/UIInvoice/CheckoutV2.cshtml | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/BTCPayServer/Views/UIInvoice/Checkout-Cheating.cshtml b/BTCPayServer/Views/UIInvoice/Checkout-Cheating.cshtml index ab68f75c9..d28f9b339 100644 --- a/BTCPayServer/Views/UIInvoice/Checkout-Cheating.cshtml +++ b/BTCPayServer/Views/UIInvoice/Checkout-Cheating.cshtml @@ -1,10 +1,10 @@ @model PaymentModel -
+

-
+ @@ -16,7 +16,7 @@
-
+
@@ -26,7 +26,7 @@
-
+
@@ -58,6 +58,20 @@ btcDue: Number, isPaid: Boolean }, + computed: { + display() { + return this.successMessage || this.errorMessage || this.displayPayment || this.displayMine || this.displayExpire; + }, + displayPayment () { + return !this.isPaid; + }, + displayExpire () { + return !this.isPaid; + }, + displayMine () { + return this.paymentMethodId === 'BTC'; + } + }, methods: { async handleFormSubmit (e, processing) { const form = e.target; diff --git a/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml b/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml index bb9599d65..6acc4366d 100644 --- a/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml +++ b/BTCPayServer/Views/UIInvoice/CheckoutV2.cshtml @@ -121,7 +121,7 @@

-
+