mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
Small UI improvements in the payout processors
This commit is contained in:
parent
e4f79f046a
commit
ae76cc1ca2
@ -14,14 +14,6 @@ namespace BTCPayServer.Abstractions.Models
|
||||
|
||||
public string SeverityCSS => ToString(Severity);
|
||||
|
||||
private void ParseNonJsonStatus(string s)
|
||||
{
|
||||
Message = s;
|
||||
Severity = s.StartsWith("Error", StringComparison.InvariantCultureIgnoreCase)
|
||||
? StatusSeverity.Error
|
||||
: StatusSeverity.Success;
|
||||
}
|
||||
|
||||
public static string ToString(StatusSeverity severity)
|
||||
{
|
||||
switch (severity)
|
||||
|
@ -127,7 +127,7 @@ public class UILightningAutomatedPayoutProcessorsController : Controller
|
||||
IntervalMinutes = blob.Interval.TotalMinutes;
|
||||
ProcessNewPayoutsInstantly = blob.ProcessNewPayoutsInstantly;
|
||||
}
|
||||
|
||||
[Display(Name = "Process approved payouts instantly")]
|
||||
public bool ProcessNewPayoutsInstantly { get; set; }
|
||||
|
||||
[Range(AutomatedPayoutConstants.MinIntervalMinutes, AutomatedPayoutConstants.MaxIntervalMinutes)]
|
||||
|
@ -140,6 +140,7 @@ public class UIOnChainAutomatedPayoutProcessorsController : Controller
|
||||
Threshold = blob.Threshold;
|
||||
}
|
||||
|
||||
[Display(Name = "Process approved payouts instantly")]
|
||||
public bool ProcessNewPayoutsInstantly { get; set; }
|
||||
|
||||
[Range(1, 1000)]
|
||||
|
@ -30,7 +30,7 @@
|
||||
}
|
||||
<div class="d-flex my-3">
|
||||
<input asp-for="ProcessNewPayoutsInstantly" type="checkbox" class="btcpay-toggle me-3" />
|
||||
<label asp-for="ProcessNewPayoutsInstantly" class="form-check-label">Process approved payouts instantly</label>
|
||||
<label asp-for="ProcessNewPayoutsInstantly" class="form-check-label"></label>
|
||||
<span asp-validation-for="ProcessNewPayoutsInstantly" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -24,14 +24,14 @@
|
||||
<partial name="_StatusMessage" />
|
||||
<div class="row">
|
||||
<div class="col-xl-8 col-xxl-constrain">
|
||||
<p>Set a schedule for automated On-Chain Bitcoin Payouts. </p>
|
||||
<p>Set a schedule for automated On-Chain Bitcoin Payouts.</p>
|
||||
@if (!ViewContext.ModelState.IsValid)
|
||||
{
|
||||
<div asp-validation-summary="All"></div>
|
||||
}
|
||||
<div class="d-flex my-3">
|
||||
<input asp-for="ProcessNewPayoutsInstantly" type="checkbox" class="btcpay-toggle me-3" />
|
||||
<label asp-for="ProcessNewPayoutsInstantly" class="form-check-label">Process approved payouts instantly</label>
|
||||
<label asp-for="ProcessNewPayoutsInstantly" class="form-check-label"></label>
|
||||
<span asp-validation-for="ProcessNewPayoutsInstantly" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -10,6 +10,9 @@
|
||||
<div class="sticky-header">
|
||||
<h2 class="my-1" text-translate="true">@ViewData["Title"]</h2>
|
||||
</div>
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
||||
<p>Payout Processors allow BTCPay Server to handle payouts in an automated way.</p>
|
||||
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user