From 0674d61d13ebaafe3b36dd84b7ab90db7f99ceb4 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 10 Jul 2025 08:28:41 -0300 Subject: data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc --- src/data/things/group.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/data/things/group.js') 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] = { -- cgit 1.3.0-6-gf8a5