From 9525ec4e143d17329c303e4ad09242a6dab9a9b9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 5 May 2022 19:34:32 -0300 Subject: 'Has Track Numbers' generalized ol/ul field --- src/util/wiki-data.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util') 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 -- cgit 1.3.0-6-gf8a5