Merge pull request #2240 from dennisreimann/onchain-symbol

Invoices list: Remove icon indicator for onchain
This commit is contained in:
Nicolas Dorier 2021-02-10 22:48:34 +09:00 committed by GitHub
commit 776825cc66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>
}