« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/listTracksWithExtra.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/listTracksWithExtra.js')
-rw-r--r--src/content/dependencies/listTracksWithExtra.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/dependencies/listTracksWithExtra.js b/src/content/dependencies/listTracksWithExtra.js
index 09d8ee21..27f03ee9 100644
--- a/src/content/dependencies/listTracksWithExtra.js
+++ b/src/content/dependencies/listTracksWithExtra.js
@@ -52,6 +52,7 @@ export default {
 
   slots: {
     hash: {type: 'string'},
+    showAlbumDates: {type: 'boolean', default: true},
   },
 
   generate(data, relations, slots, {language}) {
@@ -63,7 +64,7 @@ export default {
           albumLink: relations.albumLinks,
           date: data.dates,
         }).map(({albumLink, date}) =>
-            (date
+            (slots.showAlbumDates && date
               ? {
                   stringsKey: 'withDate',
                   album: albumLink,