diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-06-14 09:12:37 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-06-14 09:12:37 -0300 |
commit | 2e644a786783aac2fb5d08e48c2af7a54b98ea00 (patch) | |
tree | 5d759ee57a174a54052b935305eec9e02359887e /src/data/things/contribution.js | |
parent | 08293f22ce82a22c5ec91b4752341a98fe71c01c (diff) |
data: {Track,Artwork,Contribution}.groups
Just inherited, for easy access.
Diffstat (limited to 'src/data/things/contribution.js')
-rw-r--r-- | src/data/things/contribution.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/data/things/contribution.js b/src/data/things/contribution.js index b4276fff..90e8eb79 100644 --- a/src/data/things/contribution.js +++ b/src/data/things/contribution.js @@ -14,6 +14,7 @@ import { exitWithoutDependency, exposeConstant, exposeDependency, + exposeDependencyOrContinue, exposeUpdateValueOrContinue, } from '#composite/control-flow'; @@ -294,6 +295,21 @@ export class Contribution extends Thing { dependency: '#nearbyItem', }), ], + + groups: [ + withPropertyFromObject({ + object: 'thing', + property: input.value('groups'), + }), + + exposeDependencyOrContinue({ + dependency: '#thing.groups', + }), + + exposeConstant({ + value: input.value([]), + }), + ], }); [inspect.custom](depth, options, inspect) { |