« get me outta code hell

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:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/wiki-data.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js
index f8ab3ef3..8a2c44cd 100644
--- a/src/util/wiki-data.js
+++ b/src/util/wiki-data.js
@@ -271,6 +271,18 @@ export function getNewReleases(numReleases, {albumData}) {
     .slice(0, numReleases);
 }
 
+export function isArtistContribution(contrib) {
+  return contrib.thingProperty === 'artistContribs';
+}
+
+export function isContributorContribution(contrib) {
+  return contrib.thingProperty === 'contributorContribs';
+}
+
+export function isCoverArtistContribution(contrib) {
+  return contrib.thingProperty === 'coverArtistContribs';
+}
+
 // Carousel layout and utilities
 
 // Layout constants: