mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-09 00:04:20 +01:00
Link to associated invoices
This commit is contained in:
@@ -74,7 +74,8 @@ namespace BTCPayServer.Controllers
|
||||
UseInvoiceAmount = settings.UseInvoiceAmount,
|
||||
ResetEveryAmount = settings.ResetEveryAmount,
|
||||
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
|
||||
UseAllStoreInvoices = settings.UseAllStoreInvoices
|
||||
UseAllStoreInvoices = settings.UseAllStoreInvoices,
|
||||
AppId = appId
|
||||
};
|
||||
return View(vm);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,8 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public bool UseInvoiceAmount { get; set; } = true;
|
||||
[Display(Name = "Count all invoices created on the store as part of the crowdfunding goal")]
|
||||
public bool UseAllStoreInvoices { get; set; } = false;
|
||||
|
||||
public string AppId { get; set; }
|
||||
}
|
||||
|
||||
public enum CrowdfundResetEvery
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@model UpdateCrowdfundViewModel
|
||||
@using BTCPayServer.Hubs
|
||||
@model UpdateCrowdfundViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Update Crowdfund";
|
||||
}
|
||||
@@ -167,6 +168,7 @@
|
||||
<input type="submit" class="btn btn-primary" value="Save Settings" />
|
||||
</div>
|
||||
</form>
|
||||
<a asp-action="ListInvoices" asp-controller="Invoice" asp-route-searchterm="@($"orderid:{CrowdfundHubStreamer.CrowdfundInvoiceOrderIdPrefix}{Model.AppId}")">Invoices generated by app</a> 
|
||||
<a asp-action="ListApps">Back to the app list</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user