diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 2f4ca17e4..a8b54a4e5 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -782,6 +782,7 @@ namespace BTCPayServer.Tests s.Driver.FindElement(By.Id("Create")).Click(); Assert.Contains("App successfully created", s.FindAlertMessage().Text); + s.Driver.FindElement(By.CssSelector("label[for='DefaultView_Cart']")).Click(); s.Driver.FindElement(By.CssSelector(".template-item:nth-of-type(1) .btn-primary")).Click(); s.Driver.FindElement(By.Id("BuyButtonText")).SendKeys("Take my money"); s.Driver.FindElement(By.Id("SaveItemChanges")).Click(); @@ -790,7 +791,6 @@ namespace BTCPayServer.Tests var template = s.Driver.FindElement(By.Id("Template")).GetAttribute("value"); Assert.Contains("buyButtonText: Take my money", template); - s.Driver.FindElement(By.Id("DefaultView")).SendKeys("Item list and cart"); s.Driver.FindElement(By.Id("SaveSettings")).Click(); Assert.Contains("App updated", s.FindAlertMessage().Text); @@ -1796,8 +1796,7 @@ namespace BTCPayServer.Tests s.Driver.FindElement(By.Id("AppName")).SendKeys(Guid.NewGuid().ToString()); s.Driver.FindElement(By.Id("Create")).Click(); TestUtils.Eventually(() => Assert.Contains("App successfully created", s.FindAlertMessage().Text)); - s.Driver.FindElement(By.Id("DefaultView")).Click(); - s.Driver.FindElement(By.CssSelector("option[value='3']")).Click(); + s.Driver.FindElement(By.CssSelector("label[for='DefaultView_Print']")).Click(); s.Driver.FindElement(By.Id("SaveSettings")).Click(); Assert.Contains("App updated", s.FindAlertMessage().Text); diff --git a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs index d562e8042..cfe159f3c 100644 --- a/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs +++ b/BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs @@ -352,7 +352,6 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers RedirectUrl = settings.RedirectUrl, SearchTerm = app.TagAllInvoices ? $"storeid:{app.StoreDataId}" : $"orderid:{AppService.GetAppOrderId(app)}", RedirectAutomatically = settings.RedirectAutomatically.HasValue ? settings.RedirectAutomatically.Value ? "true" : "false" : "", - RequiresRefundEmail = settings.RequiresRefundEmail, FormId = settings.FormId }; if (HttpContext?.Request != null) @@ -440,8 +439,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers Description = vm.Description, EmbeddedCSS = vm.EmbeddedCSS, RedirectAutomatically = - string.IsNullOrEmpty(vm.RedirectAutomatically) ? (bool?)null : bool.Parse(vm.RedirectAutomatically), - RequiresRefundEmail = vm.RequiresRefundEmail + string.IsNullOrEmpty(vm.RedirectAutomatically) ? (bool?)null : bool.Parse(vm.RedirectAutomatically) }; settings.FormId = vm.FormId; diff --git a/BTCPayServer/Plugins/PointOfSale/Models/UpdatePointOfSaleViewModel.cs b/BTCPayServer/Plugins/PointOfSale/Models/UpdatePointOfSaleViewModel.cs index d39b81bff..893df0c3b 100644 --- a/BTCPayServer/Plugins/PointOfSale/Models/UpdatePointOfSaleViewModel.cs +++ b/BTCPayServer/Plugins/PointOfSale/Models/UpdatePointOfSaleViewModel.cs @@ -99,10 +99,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Models public string EmbeddedCSS { get; set; } public string Description { get; set; } - [Display(Name = "Require refund email on checkout")] - public RequiresRefundEmail RequiresRefundEmail { get; set; } = RequiresRefundEmail.InheritFromStore; - [Display(Name = "Request customer data on checkout")] - public string FormId { get; set; } = null; + public string FormId { get; set; } } } diff --git a/BTCPayServer/Services/Apps/AppType.cs b/BTCPayServer/Services/Apps/AppType.cs index 325aae6e2..66621e45e 100644 --- a/BTCPayServer/Services/Apps/AppType.cs +++ b/BTCPayServer/Services/Apps/AppType.cs @@ -11,12 +11,13 @@ namespace BTCPayServer.Services.Apps public enum PosViewType { - [Display(Name = "Item list only")] + [Display(Name = "Product list")] Static, - [Display(Name = "Item list and cart")] + [Display(Name = "Product list with cart")] Cart, [Display(Name = "Keypad only")] Light, + [Display(Name = "Print display")] Print } diff --git a/BTCPayServer/Views/Shared/Crowdfund/UpdateCrowdfund.cshtml b/BTCPayServer/Views/Shared/Crowdfund/UpdateCrowdfund.cshtml index e9ed99766..69d33d3e6 100644 --- a/BTCPayServer/Views/Shared/Crowdfund/UpdateCrowdfund.cshtml +++ b/BTCPayServer/Views/Shared/Crowdfund/UpdateCrowdfund.cshtml @@ -42,44 +42,49 @@
@item.Description
- - } -@item.Description
+ + } +