« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r--src/data/things/album.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index a922e565..36b3c272 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -357,13 +357,13 @@ export class Album extends Thing {
       class: input.value(CreditingSourcesEntry),
     }),
 
-    // Additional files
+    // > Update & expose - Additional files
 
     additionalFiles: thingList({
       class: input.value(AdditionalFile),
     }),
 
-    // Update only
+    // > Update only
 
     find: soupyFind(),
     reverse: soupyReverse(),
@@ -378,7 +378,13 @@ export class Album extends Thing {
       class: input.value(WikiInfo),
     }),
 
-    // Expose only
+    // > Expose only
+
+    isAlbum: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
 
     commentatorArtists: commentatorArtists(),
 
@@ -992,6 +998,12 @@ export class TrackSection extends Thing {
 
     // Expose only
 
+    isTrackSection: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
+
     directory: [
       withAlbum(),