« get me outta code hell

content: generateTrackInfoPage: conditionally show read commentary - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-12 17:15:07 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-12 17:15:07 -0300
commit8d6eff7dabaf89cfb0dfb8ff7b6a79138ba2abdc (patch)
treecb183dea2441bdd4fe0d786854b659fbcfa51820
parent837b1d1bb09986e4a5634d52acf61c8c748ba88b (diff)
content: generateTrackInfoPage: conditionally show read commentary
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 1f6205d8..52825bcf 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -209,7 +209,19 @@ export default {
                         language.$(capsule, 'link')),
                   })),
 
-              relations.readCommentaryLine,
+              (!html.isBlank(relations.additionalFilesList) ||
+               !html.isBlank(relations.contributorContributionList) ||
+               !html.isBlank(relations.creditingSourceEntries) ||
+               !html.isBlank(relations.flashesThatFeatureList) ||
+               !html.isBlank(relations.lyricsSection)
+               !html.isBlank(relations.midiProjectFilesList) ||
+               !html.isBlank(relations.referencedByTracksList) ||
+               !html.isBlank(relations.referencedTracksList) ||
+               !html.isBlank(relations.referencingSourceEntries) ||
+               !html.isBlank(relations.sampledByTracksList) ||
+               !html.isBlank(relations.sampledTracksList) ||
+               !html.isBlank(relations.sheetMusicFilesList)) &&
+                relations.readCommentaryLine,
 
               !html.isBlank(relations.creditingSourceEntries) &&
                 language.encapsulate(capsule, 'readCreditingSources', capsule =>