diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 14d79959c..3feaaf0d1 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -1092,7 +1092,6 @@ namespace BTCPayServer.Tests Assert.Equal("payout", s.Driver.FindElement(By.ClassName("transactionLabel")).Text); s.GoToStore(s.StoreId, StoreNavPages.Payouts); - var x = s.Driver.PageSource; s.Driver.FindElement(By.Id($"{PayoutState.InProgress}-view")).Click(); ReadOnlyCollection txs; TestUtils.Eventually(() => @@ -1131,7 +1130,6 @@ namespace BTCPayServer.Tests var newStore = s.CreateNewStore(); s.GenerateWallet("BTC", "", true, true); - var newWalletId = new WalletId(newStore.storeId, "BTC"); s.GoToStore(s.StoreId, StoreNavPages.PullPayments); s.Driver.FindElement(By.Id("NewPullPayment")).Click(); diff --git a/BTCPayServer/Views/StorePullPayments/Payouts.cshtml b/BTCPayServer/Views/StorePullPayments/Payouts.cshtml index 6a0170187..3bba489ff 100644 --- a/BTCPayServer/Views/StorePullPayments/Payouts.cshtml +++ b/BTCPayServer/Views/StorePullPayments/Payouts.cshtml @@ -19,7 +19,7 @@ if (payoutHandler is null) return; stateActions.AddRange(payoutHandler.GetPayoutSpecificActions().Where(pair => pair.Key == Model.PayoutState).SelectMany(pair => pair.Value)); - + } switch (Model.PayoutState) { @@ -34,7 +34,6 @@ stateActions.Add(("mark-paid", "Mark selected payouts as already paid")); break; } - } @section PageFootContent { @@ -53,67 +52,55 @@

@ViewData["Title"]

- - -
-
- - - -
+ + +
+ @if (Model.Payouts.Any() && stateActions.Any()) { -
- + - }
-
- - @if (Model.Payouts.Any()) - { - - + + + @if (Model.Payouts.Any()) + { +
+
+ } - - + + @for (int i = 0; i < Model.Payouts.Count; i++) { var pp = Model.Payouts[i]; - - @if (Model.PayoutState != PayoutState.AwaitingApproval) @@ -164,13 +151,13 @@ } } - -
@@ -129,16 +116,16 @@ Transaction
- - + + @@ -147,10 +134,10 @@ @pp.PullPaymentName + @pp.Destination + @pp.Amount
- } - else - { -

There are no payouts matching this criteria.

- } - -
+ + +
+ + } + else + { +

There are no payouts matching this criteria.

+ }