diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-03 13:22:08 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-14 07:59:22 -0400 |
commit | 60f007a20db3547c57b1b1f84510707b38a4076a (patch) | |
tree | b401118bc40ce493fe5fd243a3472cf6986e9053 /src/data/things/album.js | |
parent | 163c541f4b8244f3c2fd8568ab3ef5cc4ed114a2 (diff) |
data: Album.suffixTrackDirectories
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r-- | src/data/things/album.js | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 9cbab427..4a714361 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -77,12 +77,20 @@ export class Album extends Thing { name: name('Unnamed Album'), directory: directory(), - directorySuffix: { - flags: {update: true, expose: true}, - update: {validate: isDirectory}, - }, + directorySuffix: [ + exposeUpdateValueOrContinue({ + validate: input.value(isDirectory), + }), + + withDirectory(), + + exposeDependency({ + dependency: '#directory', + }), + ], alwaysReferenceTracksByDirectory: flag(false), + suffixTrackDirectories: flag(false), color: color(), urls: urls(), @@ -333,8 +341,10 @@ export class Album extends Thing { static [Thing.yamlDocumentSpec] = { fields: { 'Album': {property: 'name'}, + 'Directory': {property: 'directory'}, 'Directory Suffix': {property: 'directorySuffix'}, + 'Suffix Track Directories': {property: 'suffixTrackDirectories'}, 'Always Reference Tracks By Directory': { property: 'alwaysReferenceTracksByDirectory', |