« get me outta code hell

'Has Track Numbers' generalized ol/ul field - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-05-05 19:34:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-05 19:34:32 -0300
commit9525ec4e143d17329c303e4ad09242a6dab9a9b9 (patch)
tree05047b14c9a98ec51d0465f8bfd381a18ebf2d04 /src/util
parent8fd50d6f0ba8dcfcfe34eb1321dc0bdd307b8c6a (diff)
'Has Track Numbers' generalized ol/ul field
Diffstat (limited to 'src/util')
-rw-r--r--src/util/wiki-data.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js
index c0c6dc3d..6891a4c6 100644
--- a/src/util/wiki-data.js
+++ b/src/util/wiki-data.js
@@ -107,8 +107,7 @@ export function getAlbumCover(album, {to}) {
 }
 
 export function getAlbumListTag(album) {
-    // TODO: This is hard-coded! No. 8ad.
-    return (album.directory === UNRELEASED_TRACKS_DIRECTORY ? 'ul' : 'ol');
+    return (album.hasTrackNumbers ? 'ol' : 'ul');
 }
 
 // This gets all the track o8jects defined in every al8um, and sorts them 8y