From abebddc844ccea9ec7ee3d950cd6a10707ae5e4e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 10 Jan 2025 22:29:50 -0400 Subject: data: Track: stub soupyFind demo --- src/data/things/track.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/data/things/track.js') diff --git a/src/data/things/track.js b/src/data/things/track.js index a0d2f641..a4497ec0 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -54,6 +54,7 @@ import { simpleDate, simpleString, singleReference, + soupyFind, thing, urls, wikiData, @@ -329,10 +330,14 @@ export class Track extends Thing { notFoundValue: input.value([]), }), + withPropertyFromObject({ + object: 'find', + property: input.value('track'), + }), + referenceList({ class: input.value(Track), - find: input.value(find.track), - data: 'trackData', + find: '#find.track', }), ], @@ -341,10 +346,14 @@ export class Track extends Thing { notFoundValue: input.value([]), }), + withPropertyFromObject({ + object: 'find', + property: input.value('track'), + }), + referenceList({ class: input.value(Track), - find: input.value(find.track), - data: 'trackData', + find: '#find.track', }), ], @@ -376,6 +385,8 @@ export class Track extends Thing { // Update only + find: soupyFind(), + albumData: wikiData({ class: input.value(Album), }), -- cgit 1.3.0-6-gf8a5