« get me outta code hell

content: linkContribution: preventTooltip slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkContribution.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-08-15 12:16:03 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-08-15 12:16:03 -0300
commita2bf9ff61de1dcdc5406dc3c400aa4abc2dc0425 (patch)
treefc859150d01e5bfeef9a4d2801e3c301bfdfabc9 /src/content/dependencies/linkContribution.js
parent6001fda38ccc575b50182c312963b3661b43f42a (diff)
content: linkContribution: preventTooltip slot
Diffstat (limited to 'src/content/dependencies/linkContribution.js')
-rw-r--r--src/content/dependencies/linkContribution.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js
index feed74cc..67451093 100644
--- a/src/content/dependencies/linkContribution.js
+++ b/src/content/dependencies/linkContribution.js
@@ -29,6 +29,7 @@ export default {
     showChronology: {type: 'boolean', default: false},
 
     preventWrapping: {type: 'boolean', default: true},
+    preventTooltip: {type: 'boolean', default: false},
     chronologyKind: {type: 'string'},
   },
 
@@ -52,7 +53,7 @@ export default {
         });
 
         workingOptions.artist =
-          (html.isBlank(relations.tooltip)
+          (html.isBlank(relations.tooltip) || slots.preventTooltip
             ? relations.artistLink
             : relations.textWithTooltip.slots({
                 customInteractionCue: true,