« get me outta code hell

data: Default Track Dimensions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/track.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-12-09 16:06:17 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-09 16:06:17 -0400
commit6ddc14218d1e2c6afde5469c61c626dfbda6974d (patch)
treea42656fab771775a44562ed3ea9fb6f2250eb5ee /src/data/things/track.js
parentcf52f64116f395fe4d7e2d2937877300ec182575 (diff)
data: Default Track Dimensions
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r--src/data/things/track.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 408f18fb..7934daa6 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -197,6 +197,13 @@ export class Track extends Thing {
 
     coverArtDimensions: [
       exitWithoutUniqueCoverArt(),
+
+      withPropertyFromAlbum({
+        property: input.value('trackDimensions'),
+      }),
+
+      exposeDependencyOrContinue({dependency: '#album.trackDimensions'}),
+
       dimensions(),
     ],