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); }
Set a schedule for automated Lightning Network Payouts.
- @if (!ViewContext.ModelState.IsValid) +Set a schedule for automated Lightning Network Payouts.
+ @if (!ViewContext.ModelState.IsValid) { }Set a schedule for automated On-Chain Bitcoin Payouts.
- @if (!ViewContext.ModelState.IsValid) +Set a schedule for automated On-Chain Bitcoin Payouts.
+ @if (!ViewContext.ModelState.IsValid) { }| Payment Method | -Actions | -
|---|
| Payment Method | +Actions | +
|---|---|
| + @conf.Key.ToPrettyString() + | ++ @if (conf.Value is null) { - |
| - @conf.Key.ToPrettyString() - - | - -- @if (conf.Value is null) - { - Configure - } - else - { - Modify - Remove - - } - | -