« get me outta code hell

data: Track.suffixDirectory, Album.directorySuffix - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-03 09:59:31 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-14 07:59:22 -0400
commit163c541f4b8244f3c2fd8568ab3ef5cc4ed114a2 (patch)
tree6ce776cc82296686adee36b97346113634c6563c /src/data/composite/wiki-properties
parent6ac3a98cb60651b82d2f93a3ced0e56162ea4be7 (diff)
data: Track.suffixDirectory, Album.directorySuffix
Diffstat (limited to 'src/data/composite/wiki-properties')
-rw-r--r--src/data/composite/wiki-properties/directory.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data/composite/wiki-properties/directory.js b/src/data/composite/wiki-properties/directory.js
index 843958d7..9ca2a204 100644
--- a/src/data/composite/wiki-properties/directory.js
+++ b/src/data/composite/wiki-properties/directory.js
@@ -19,12 +19,18 @@ export default templateCompositeFrom({
       validate: isName,
       defaultDependency: 'name',
     }),
+
+    suffix: input({
+      validate: isDirectory,
+      defaultValue: null,
+    }),
   },
 
   steps: () => [
     withDirectory({
       directory: input.updateValue({validate: isDirectory}),
       name: input('name'),
+      suffix: input('suffix'),
     }),
 
     exposeDependency({