diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things.js | 1 | ||||
-rw-r--r-- | src/data/yaml.js | 1 | ||||
-rw-r--r-- | src/util/wiki-data.js | 3 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/data/things.js b/src/data/things.js index b2251430..c02e07e5 100644 --- a/src/data/things.js +++ b/src/data/things.js @@ -476,6 +476,7 @@ Album.propertyDescriptors = { hasCoverArt: Thing.common.flag(true), hasTrackArt: Thing.common.flag(true), + hasTrackNumbers: Thing.common.flag(true), isMajorRelease: Thing.common.flag(false), isListedOnHomepage: Thing.common.flag(true), diff --git a/src/data/yaml.js b/src/data/yaml.js index 2e0e985a..4897d573 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -221,6 +221,7 @@ export const processAlbumDocument = makeProcessDocument(Album, { hasCoverArt: 'Has Cover Art', hasTrackArt: 'Has Track Art', + hasTrackNumbers: 'Has Track Numbers', isMajorRelease: 'Major Release', isListedOnHomepage: 'Listed on Homepage', 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 |