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.
This commit is contained in:
Dennis Reimann 2021-01-30 18:53:21 +01:00
parent 03d2f6c017
commit af5bd89f34
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0
2 changed files with 2 additions and 2 deletions

View file

@ -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)
{

View file

@ -292,7 +292,7 @@
@invoice.Status.ToString().ToLower()
</span>
}
@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())))
{
<span class="badge">@paymentType.GetBadge()</span>
}