« 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/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/group.js')
-rw-r--r--src/data/things/group.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/data/things/group.js b/src/data/things/group.js
index 0262a3a5..fc33a9d0 100644
--- a/src/data/things/group.js
+++ b/src/data/things/group.js
@@ -8,6 +8,8 @@ import Thing from '#thing';
 import {is} from '#validators';
 import {parseAnnotatedReferences, parseSerieses} from '#yaml';
 
+import {exposeConstant} from '#composite/control-flow';
+
 import {
   annotatedReferenceList,
   color,
@@ -58,6 +60,12 @@ export class Group extends Thing {
 
     // Expose only
 
+    isGroup: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
+
     descriptionShort: {
       flags: {expose: true},
 
@@ -227,6 +235,14 @@ export class GroupCategory extends Thing {
     // Update only
 
     find: soupyFind(),
+
+    // Expose only
+
+    isGroupCategory: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
   });
 
   static [Thing.reverseSpecs] = {