mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
The invoices link of crowdfund show all invoices of the store if it is set to use all store's invoice
This commit is contained in:
@@ -82,6 +82,7 @@ namespace BTCPayServer.Controllers
|
|||||||
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
|
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
|
||||||
UseAllStoreInvoices = settings.UseAllStoreInvoices,
|
UseAllStoreInvoices = settings.UseAllStoreInvoices,
|
||||||
AppId = appId,
|
AppId = appId,
|
||||||
|
SearchTerm = settings.UseAllStoreInvoices ? $"storeid:{app.StoreDataId}" : $"orderid:{AppsHelper.GetCrowdfundOrderId(appId)}",
|
||||||
DisplayPerksRanking = settings.DisplayPerksRanking,
|
DisplayPerksRanking = settings.DisplayPerksRanking,
|
||||||
SortPerksByPopularity = settings.SortPerksByPopularity
|
SortPerksByPopularity = settings.SortPerksByPopularity
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -191,7 +191,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="submit" class="btn btn-primary" value="Save Settings" />
|
<input type="submit" class="btn btn-primary" value="Save Settings" />
|
||||||
<a class="btn btn-secondary" target="_blank" asp-action="ListInvoices" asp-controller="Invoice" asp-route-searchterm="@($"orderid:{CrowdfundHubStreamer.CrowdfundInvoiceOrderIdPrefix}{Model.AppId}")">Invoices generated by app</a>
|
<a class="btn btn-secondary" target="_blank" asp-action="ListInvoices" asp-controller="Invoice" asp-route-searchterm="@Model.SearchTerm">Invoices</a>
|
||||||
<a class="btn btn-secondary" target="_blank" asp-action="ViewCrowdfund" asp-controller="AppsPublic" asp-route-appId="@Model.AppId">View App</a>
|
<a class="btn btn-secondary" target="_blank" asp-action="ViewCrowdfund" asp-controller="AppsPublic" asp-route-appId="@Model.AppId">View App</a>
|
||||||
<a class="btn btn-secondary" target="_blank" asp-action="ListApps">Back to the app list</a>
|
<a class="btn btn-secondary" target="_blank" asp-action="ListApps">Back to the app list</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user