« get me outta code hell

content: transformContent: substitute apply() - 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>2025-09-08 19:27:06 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-08 19:27:06 -0300
commit435af33e7e33ff664f6b01d2e02486de1346f20a (patch)
tree44ad74caf231c670c27e1e432bf069aa6f9e0cf9 /src/content/dependencies/linkContribution.js
parent27b4de9be0f23e25bdb6eb81e3e48c50cb0d4163 (diff)
content: transformContent: substitute apply()
Diffstat (limited to 'src/content/dependencies/linkContribution.js')
-rw-r--r--src/content/dependencies/linkContribution.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js
index 1db0373b..4ccaf7b4 100644
--- a/src/content/dependencies/linkContribution.js
+++ b/src/content/dependencies/linkContribution.js
@@ -24,6 +24,8 @@ export default {
   }),
 
   slots: {
+    content: {type: 'html', mutable: false},
+
     showAnnotation: {type: 'boolean', default: false},
     showExternalLinks: {type: 'boolean', default: false},
     showChronology: {type: 'boolean', default: false},
@@ -46,6 +48,10 @@ export default {
       language.encapsulate('misc.artistLink', workingCapsule => {
         const workingOptions = {};
 
+        if (!html.isBlank(slots.content)) {
+          relations.artistLink.setSlot('content', slots.content);
+        }
+
         // Filling slots early is necessary to actually give the tooltip
         // content. Otherwise, the coming-up html.isBlank() always reports
         // the tooltip as blank!