From af5bd89f347c5afd76b04cd921101306242a385e Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Sat, 30 Jan 2021 18:53:21 +0100 Subject: [PATCH] Invoices list: Remove icon indicator for onchain As [discussed on the chat](https://chat.btcpayserver.org/btcpayserver/pl/tcjy5ornhbd8i8jm4yj9y3maie) the icon feels unnecessary and isn't clear to users. Leaving it off and only indicating Lightning transactions avoids confusion. --- BTCPayServer/Payments/PaymentTypes.Bitcoin.cs | 2 +- BTCPayServer/Views/Invoice/ListInvoices.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Payments/PaymentTypes.Bitcoin.cs b/BTCPayServer/Payments/PaymentTypes.Bitcoin.cs index 952e64278..b41961398 100644 --- a/BTCPayServer/Payments/PaymentTypes.Bitcoin.cs +++ b/BTCPayServer/Payments/PaymentTypes.Bitcoin.cs @@ -17,7 +17,7 @@ namespace BTCPayServer.Payments public override string ToPrettyString() => "On-Chain"; public override string GetId() => "BTCLike"; - public override string GetBadge() => "🔗"; + public override string GetBadge() => ""; public override string ToStringNormalized() => "OnChain"; public override CryptoPaymentData DeserializePaymentData(BTCPayNetworkBase network, string str) { diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index 137da1dc5..eab82fd66 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -292,7 +292,7 @@ @invoice.Status.ToString().ToLower() } - @foreach (var paymentType in invoice.Details.Payments.Select(payment => payment.GetPaymentMethodId()?.PaymentType).Distinct().Where(type => type != null && !string.IsNullOrEmpty(type.GetBadge()))) + @foreach (var paymentType in invoice.Details.Payments.Select(payment => payment.GetPaymentMethodId()?.PaymentType).Distinct().Where(type => type != null && !string.IsNullOrEmpty(type.GetBadge()))) { @paymentType.GetBadge() }