From f89cdadde831204c07cb205802b4d1f7dbf6dd7c Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 8 Oct 2021 13:36:08 +0200 Subject: [PATCH] fix btn text --- BTCPayServer/Views/AppsPublic/PointOfSale/Cart.cshtml | 2 +- BTCPayServer/Views/AppsPublic/PointOfSale/Static.cshtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/PointOfSale/Cart.cshtml b/BTCPayServer/Views/AppsPublic/PointOfSale/Cart.cshtml index ed31198bf..9fdd30f42 100644 --- a/BTCPayServer/Views/AppsPublic/PointOfSale/Cart.cshtml +++ b/BTCPayServer/Views/AppsPublic/PointOfSale/Cart.cshtml @@ -232,7 +232,7 @@ @{ - var buttonText = string.IsNullOrEmpty(item.BuyButtonText) ? item.Custom != "false" ? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText; + var buttonText = string.IsNullOrEmpty(item.BuyButtonText) ? (item.Custom == "true" || item.Custom == "topup") ? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText; if (item.Custom != "topup") { buttonText = buttonText.Replace("{0}",item.Price.Formatted) diff --git a/BTCPayServer/Views/AppsPublic/PointOfSale/Static.cshtml b/BTCPayServer/Views/AppsPublic/PointOfSale/Static.cshtml index 0bd17fb4c..15380e32b 100644 --- a/BTCPayServer/Views/AppsPublic/PointOfSale/Static.cshtml +++ b/BTCPayServer/Views/AppsPublic/PointOfSale/Static.cshtml @@ -19,7 +19,7 @@ @for (int x = 0; x < Model.Items.Length; x++) { var item = Model.Items[x]; - var buttonText = string.IsNullOrEmpty(item.BuyButtonText) ? item.Custom != "false" ? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText; + var buttonText = string.IsNullOrEmpty(item.BuyButtonText) ? (item.Custom == "true" || item.Custom == "topup") ? Model.CustomButtonText : Model.ButtonText : item.BuyButtonText; if (item.Custom != "topup") { buttonText = buttonText.Replace("{0}",item.Price.Formatted) @@ -46,7 +46,7 @@ {
}