mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 14:04:12 +01:00
Add transaction speed on the invoice page
This commit is contained in:
parent
1c0c8fece2
commit
774817d4ac
3 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,7 @@ namespace BTCPayServer.Controllers
|
||||||
StoreLink = Url.Action(nameof(StoresController.UpdateStore), "Stores", new { storeId = store.Id }),
|
StoreLink = Url.Action(nameof(StoresController.UpdateStore), "Stores", new { storeId = store.Id }),
|
||||||
Id = invoice.Id,
|
Id = invoice.Id,
|
||||||
Status = invoice.Status,
|
Status = invoice.Status,
|
||||||
|
TransactionSpeed = invoice.SpeedPolicy == SpeedPolicy.HighSpeed ? "high" : invoice.SpeedPolicy == SpeedPolicy.MediumSpeed ? "medium" : "low",
|
||||||
RefundEmail = invoice.RefundMail,
|
RefundEmail = invoice.RefundMail,
|
||||||
CreatedDate = invoice.InvoiceTime,
|
CreatedDate = invoice.InvoiceTime,
|
||||||
ExpirationDate = invoice.ExpirationTime,
|
ExpirationDate = invoice.ExpirationTime,
|
||||||
|
|
|
@ -97,6 +97,8 @@ namespace BTCPayServer.Models.InvoicingModels
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string TransactionSpeed { get; set; }
|
||||||
public object StoreName
|
public object StoreName
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
|
|
|
@ -53,6 +53,10 @@
|
||||||
<th>Monitoring date</th>
|
<th>Monitoring date</th>
|
||||||
<td>@Model.MonitoringDate</td>
|
<td>@Model.MonitoringDate</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Transaction speed</th>
|
||||||
|
<td>@Model.TransactionSpeed</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<td>@Model.Status</td>
|
<td>@Model.Status</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue