diff --git a/BTCPayServer/PayoutProcessors/Lightning/UILightningAutomatedPayoutProcessorsController.cs b/BTCPayServer/PayoutProcessors/Lightning/UILightningAutomatedPayoutProcessorsController.cs index f98c45f11..cb70a9b54 100644 --- a/BTCPayServer/PayoutProcessors/Lightning/UILightningAutomatedPayoutProcessorsController.cs +++ b/BTCPayServer/PayoutProcessors/Lightning/UILightningAutomatedPayoutProcessorsController.cs @@ -101,10 +101,10 @@ public class UILightningAutomatedPayoutProcessorsController : Controller Id = activeProcessor.Id, Processed = tcs }); - TempData.SetStatusMessageModel(new StatusMessageModel() + TempData.SetStatusMessageModel(new StatusMessageModel { Severity = StatusMessageModel.StatusSeverity.Success, - Message = $"Processor updated." + Message = "Processor updated." }); await tcs.Task; return RedirectToAction("ConfigureStorePayoutProcessors", "UiPayoutProcessors", new {storeId}); @@ -121,11 +121,12 @@ public class UILightningAutomatedPayoutProcessorsController : Controller { IntervalMinutes = blob.Interval.TotalMinutes; } + public double IntervalMinutes { get; set; } public AutomatedPayoutBlob ToBlob() { - return new AutomatedPayoutBlob() { Interval = TimeSpan.FromMinutes(IntervalMinutes) }; + return new AutomatedPayoutBlob { Interval = TimeSpan.FromMinutes(IntervalMinutes) }; } } } diff --git a/BTCPayServer/PayoutProcessors/OnChain/UIOnChainAutomatedPayoutProcessorsController.cs b/BTCPayServer/PayoutProcessors/OnChain/UIOnChainAutomatedPayoutProcessorsController.cs index ede2d603f..7a6c65e21 100644 --- a/BTCPayServer/PayoutProcessors/OnChain/UIOnChainAutomatedPayoutProcessorsController.cs +++ b/BTCPayServer/PayoutProcessors/OnChain/UIOnChainAutomatedPayoutProcessorsController.cs @@ -114,10 +114,10 @@ public class UIOnChainAutomatedPayoutProcessorsController : Controller Id = activeProcessor.Id, Processed = tcs }); - TempData.SetStatusMessageModel(new StatusMessageModel() + TempData.SetStatusMessageModel(new StatusMessageModel { Severity = StatusMessageModel.StatusSeverity.Success, - Message = $"Processor updated." + Message = "Processor updated." }); await tcs.Task; return RedirectToAction("ConfigureStorePayoutProcessors", "UiPayoutProcessors", new {storeId}); @@ -138,7 +138,7 @@ public class UIOnChainAutomatedPayoutProcessorsController : Controller public AutomatedPayoutBlob ToBlob() { - return new AutomatedPayoutBlob() { Interval = TimeSpan.FromMinutes(IntervalMinutes) }; + return new AutomatedPayoutBlob { Interval = TimeSpan.FromMinutes(IntervalMinutes) }; } } } diff --git a/BTCPayServer/Views/UILightningAutomatedPayoutProcessors/Configure.cshtml b/BTCPayServer/Views/UILightningAutomatedPayoutProcessors/Configure.cshtml index 415aeac25..e2f5bdd28 100644 --- a/BTCPayServer/Views/UILightningAutomatedPayoutProcessors/Configure.cshtml +++ b/BTCPayServer/Views/UILightningAutomatedPayoutProcessors/Configure.cshtml @@ -6,22 +6,23 @@ ViewData.SetActivePage("PayoutProcessors", "Lightning Payout Processor", Context.GetStoreData().Id); }
- -
-
-

@ViewData["Title"]

-
-

Set a schedule for automated Lightning Network Payouts.

- @if (!ViewContext.ModelState.IsValid) +
+
+

@ViewData["Title"]

+
+

Set a schedule for automated Lightning Network Payouts.

+ @if (!ViewContext.ModelState.IsValid) {
}
- - + +
+ + minutes +
-
diff --git a/BTCPayServer/Views/UIOnChainAutomatedPayoutProcessors/Configure.cshtml b/BTCPayServer/Views/UIOnChainAutomatedPayoutProcessors/Configure.cshtml index 1a425fb96..4512d1810 100644 --- a/BTCPayServer/Views/UIOnChainAutomatedPayoutProcessors/Configure.cshtml +++ b/BTCPayServer/Views/UIOnChainAutomatedPayoutProcessors/Configure.cshtml @@ -3,25 +3,26 @@ @{ ViewData["NavPartialName"] = "../UIStores/_Nav"; Layout = "../Shared/_NavLayout.cshtml"; - ViewData.SetActivePage("PayoutProcessors", "OnChain Payout Processor", Context.GetStoreData().Id); + ViewData.SetActivePage("PayoutProcessors", "On-Chain Payout Processor", Context.GetStoreData().Id); }
- -
-
-

@ViewData["Title"]

-
-

Set a schedule for automated On-Chain Bitcoin Payouts.

- @if (!ViewContext.ModelState.IsValid) +
+
+

@ViewData["Title"]

+
+

Set a schedule for automated On-Chain Bitcoin Payouts.

+ @if (!ViewContext.ModelState.IsValid) {
}
- - + +
+ + minutes +
-
diff --git a/BTCPayServer/Views/UIPayoutProcessors/ConfigureStorePayoutProcessors.cshtml b/BTCPayServer/Views/UIPayoutProcessors/ConfigureStorePayoutProcessors.cshtml index 7ca599c6d..37470a437 100644 --- a/BTCPayServer/Views/UIPayoutProcessors/ConfigureStorePayoutProcessors.cshtml +++ b/BTCPayServer/Views/UIPayoutProcessors/ConfigureStorePayoutProcessors.cshtml @@ -15,50 +15,39 @@ @if (Model.Any()) { - foreach (var processorsView in Model) + foreach (var processorsView in Model) { -
-

@processorsView.Factory.FriendlyName

-
-
- - - - - - - - - @foreach (var conf in processorsView.Configured) +

@processorsView.Factory.FriendlyName

+
Payment MethodActions
+ + + + + + + + @foreach (var conf in processorsView.Configured) + { + + + - - - - + Configure } - - - -
Payment MethodActions
+ @conf.Key.ToPrettyString() + + @if (conf.Value is null) { -
- @conf.Key.ToPrettyString() - - - @if (conf.Value is null) - { - Configure - } - else - { - Modify - Remove - - } -
-
-
- -
+ else + { + Modify + - + Remove + } + + + } + + } } else