From 6001fda38ccc575b50182c312963b3661b43f42a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 15 Aug 2024 12:12:59 -0300 Subject: content: linkContribution: drop duplicate tooltip slots --- src/content/dependencies/linkContribution.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js index 26f0b2d7..feed74cc 100644 --- a/src/content/dependencies/linkContribution.js +++ b/src/content/dependencies/linkContribution.js @@ -42,6 +42,9 @@ export default { language.encapsulate('misc.artistLink', workingCapsule => { const workingOptions = {}; + // Filling slots early is necessary to actually give the tooltip + // content. Otherwise, the coming-up html.isBlank() always reports + // the tooltip as blank! relations.tooltip.setSlots({ showExternalLinks: slots.showExternalLinks, showChronology: slots.showChronology, @@ -60,11 +63,7 @@ export default { }), tooltip: - relations.tooltip.slots({ - showExternalLinks: slots.showExternalLinks, - showChronology: slots.showChronology, - chronologyKind: slots.chronologyKind, - }), + relations.tooltip, })); if (slots.showContribution && data.contribution) { -- cgit 1.3.0-6-gf8a5