handle non built in tag attachments better

This commit is contained in:
Kukks 2023-01-27 15:44:21 +01:00
parent 3d576cd06b
commit b372dc21d6
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097

View File

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