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 @@

-
+