From cd009466b62fdac6f30cd960d7a3728fe77a6f8c Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 6 Jun 2019 18:47:31 +0900 Subject: [PATCH] Make sure we don't have empty row if no StatusMessage --- .../Views/Account/ForgotPassword.cshtml | 3 + .../Views/Account/ResetPassword.cshtml | 11 ++- BTCPayServer/Views/Apps/ListApps.cshtml | 14 ++-- .../Views/Apps/UpdateCrowdfund.cshtml | 23 ++---- .../Views/Apps/UpdatePointOfSale.cshtml | 20 ++--- BTCPayServer/Views/Invoice/Invoice.cshtml | 16 ++-- .../Views/Invoice/ListInvoices.cshtml | 23 +++--- .../PaymentRequest/EditPaymentRequest.cshtml | 49 +++++------- .../PaymentRequest/GetPaymentRequests.cshtml | 78 +++++++++---------- .../Views/UserStores/ListStores.cshtml | 5 +- BTCPayServer/Views/Wallets/ListWallets.cshtml | 44 ++++++----- BTCPayServer/Views/Wallets/WalletPSBT.cshtml | 12 +-- .../Views/Wallets/WalletSettings.cshtml | 14 ++-- .../Views/Wallets/WalletTransactions.cshtml | 14 ++-- 14 files changed, 154 insertions(+), 172 deletions(-) diff --git a/BTCPayServer/Views/Account/ForgotPassword.cshtml b/BTCPayServer/Views/Account/ForgotPassword.cshtml index 0747d28b1..7835f783a 100644 --- a/BTCPayServer/Views/Account/ForgotPassword.cshtml +++ b/BTCPayServer/Views/Account/ForgotPassword.cshtml @@ -5,11 +5,14 @@
+ @if (TempData.ContainsKey("StatusMessage")) + {
+ }

@ViewData["Title"]

diff --git a/BTCPayServer/Views/Account/ResetPassword.cshtml b/BTCPayServer/Views/Account/ResetPassword.cshtml index d802fc462..a5be48c47 100644 --- a/BTCPayServer/Views/Account/ResetPassword.cshtml +++ b/BTCPayServer/Views/Account/ResetPassword.cshtml @@ -5,11 +5,14 @@
-
-
- + @if (TempData.ContainsKey("StatusMessage")) + { +
+
+ +
-
+ }
diff --git a/BTCPayServer/Views/Apps/ListApps.cshtml b/BTCPayServer/Views/Apps/ListApps.cshtml index 0f1190678..e5a54283d 100644 --- a/BTCPayServer/Views/Apps/ListApps.cshtml +++ b/BTCPayServer/Views/Apps/ListApps.cshtml @@ -3,16 +3,16 @@ @{ ViewData["Title"] = "Apps"; } -
- -
-
- + @if (TempData.ContainsKey("TempDataProperty-StatusMessage")) + { +
+
+ +
-
- + }

@ViewData["Title"]

diff --git a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml index f7f991d82..503097ce6 100644 --- a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml +++ b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml @@ -30,11 +30,14 @@
-
-
- + @if (TempData.ContainsKey("TempDataProperty-StatusMessage")) + { +
+
+ +
-
+ }
@@ -44,7 +47,6 @@
-
@@ -82,7 +84,6 @@
-
-
@@ -192,7 +191,6 @@
-
@@ -208,7 +206,6 @@
-
@@ -216,19 +213,15 @@ View App Back to the app list
-
- @section Scripts { - - - } - diff --git a/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml b/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml index e4a52443e..cf91bef14 100644 --- a/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml +++ b/BTCPayServer/Views/Apps/UpdatePointOfSale.cshtml @@ -22,7 +22,6 @@
-
@@ -30,11 +29,14 @@
-
-
- + @if (TempData.ContainsKey("TempDataProperty-StatusMessage")) + { +
+
+ +
-
+ }
@@ -141,7 +143,6 @@
-

You can host point of sale buttons in an external website with the following code.

@@ -201,22 +202,18 @@
-
Back to the app list -
- @section Scripts { - - - } - diff --git a/BTCPayServer/Views/Invoice/Invoice.cshtml b/BTCPayServer/Views/Invoice/Invoice.cshtml index 2863e84ef..c64c540a2 100644 --- a/BTCPayServer/Views/Invoice/Invoice.cshtml +++ b/BTCPayServer/Views/Invoice/Invoice.cshtml @@ -5,8 +5,8 @@ @section HeaderContent{ } - -
- -
-
- + @if (!string.IsNullOrEmpty(Model.StatusMessage)) + { +
+
+ +
-
+ }
@@ -90,7 +91,6 @@
-

Buyer information

diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index 2e3c6048d..88942f65d 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -2,20 +2,20 @@ @{ ViewData["Title"] = "Invoices"; } - @section HeadScripts { } - -@Html.HiddenFor(a=>a.Count) +@Html.HiddenFor(a => a.Count)
- -
-
- + @if (!string.IsNullOrEmpty(Model.StatusMessage)) + { +
+
+ +
-
+ }
@@ -48,7 +48,6 @@ -
@@ -274,7 +272,6 @@ }
-
- - - -
-
- +@if (TempData.ContainsKey("TempDataProperty-StatusMessage")) +{ +
+
+ +
-
+}
If BTCPay Server shows you an invalid balance, rescan your wallet.