From b372dc21d6c846c44e48aee84c03272d30499310 Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 27 Jan 2023 15:44:21 +0100 Subject: [PATCH] handle non built in tag attachments better --- BTCPayServer/Controllers/UIWalletsController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BTCPayServer/Controllers/UIWalletsController.cs b/BTCPayServer/Controllers/UIWalletsController.cs index fc25866ca..dfd24ddc9 100644 --- a/BTCPayServer/Controllers/UIWalletsController.cs +++ b/BTCPayServer/Controllers/UIWalletsController.cs @@ -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