From ba176124611526d9db1cede193d0f8dcd9da366b Mon Sep 17 00:00:00 2001 From: Kukks Date: Sat, 5 Jan 2019 10:17:52 +0100 Subject: [PATCH] Link to associated invoices --- BTCPayServer/Controllers/AppsController.Crowdsale.cs | 3 ++- BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs | 2 ++ BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Controllers/AppsController.Crowdsale.cs b/BTCPayServer/Controllers/AppsController.Crowdsale.cs index 6b3cb942a..9fc33c36f 100644 --- a/BTCPayServer/Controllers/AppsController.Crowdsale.cs +++ b/BTCPayServer/Controllers/AppsController.Crowdsale.cs @@ -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); } diff --git a/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs b/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs index 753d00220..b00d04145 100644 --- a/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs +++ b/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs @@ -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 diff --git a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml index dde7596d0..2a38bf90e 100644 --- a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml +++ b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml @@ -1,4 +1,5 @@ -@model UpdateCrowdfundViewModel +@using BTCPayServer.Hubs +@model UpdateCrowdfundViewModel @{ ViewData["Title"] = "Update Crowdfund"; } @@ -167,6 +168,7 @@ + Invoices generated by app  Back to the app list