« get me outta code hell

group: add GroupCategory.directory, referenceType group-category - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-04 20:20:27 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-11-04 20:20:27 -0300
commite42e5527b99426c1b74fea150cf62214de73087e (patch)
tree63392341198cd4595f5f6a24b446075bc3136962 /src/data
parentc1f93e2d270292bca7e991c180db618f4902a3f9 (diff)
group: add GroupCategory.directory, referenceType group-category
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/group.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data/things/group.js b/src/data/things/group.js
index 8764a9db..7bb917ad 100644
--- a/src/data/things/group.js
+++ b/src/data/things/group.js
@@ -83,12 +83,15 @@ export class Group extends Thing {
 }
 
 export class GroupCategory extends Thing {
+  static [Thing.referenceType] = 'group-category';
   static [Thing.friendlyName] = `Group Category`;
 
   static [Thing.getPropertyDescriptors] = ({Group}) => ({
     // Update & expose
 
     name: name('Unnamed Group Category'),
+    directory: directory(),
+
     color: color(),
 
     groups: referenceList({