mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
handle non built in tag attachments better
This commit is contained in:
parent
3d576cd06b
commit
b372dc21d6
@ -1423,6 +1423,14 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
model.Tooltip = $"This UTXO was part of a PayJoin transaction.";
|
||||
}
|
||||
else
|
||||
{
|
||||
model.Tooltip = tag.Data?.TryGetValue("tooltip", StringComparison.InvariantCultureIgnoreCase, out var tooltip) is true ? tooltip.ToString() : tag.Id;
|
||||
if (tag.Data?.TryGetValue("link", StringComparison.InvariantCultureIgnoreCase, out var link) is true)
|
||||
{
|
||||
model.Link = link.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var label in transactionInfo.LabelColors)
|
||||
models.TryAdd(label.Key, new TransactionTagModel
|
||||
|
Loading…
Reference in New Issue
Block a user