diff options
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/things/album/AsideTrackSection.js | 20 | ||||
| -rw-r--r-- | src/data/things/album/CloseAsideTrackSection.js | 20 | ||||
| -rw-r--r-- | src/data/things/group/Group.js | 10 | ||||
| -rw-r--r-- | src/data/things/group/GroupCategory.js | 6 |
4 files changed, 48 insertions, 8 deletions
diff --git a/src/data/things/album/AsideTrackSection.js b/src/data/things/album/AsideTrackSection.js new file mode 100644 index 00000000..9b1f9b57 --- /dev/null +++ b/src/data/things/album/AsideTrackSection.js @@ -0,0 +1,20 @@ +// Annoying subclass just for direct access in YAML-loading. + +import Thing from '#thing'; + +import {TrackSection} from './TrackSection.js'; + +export class AsideTrackSection extends TrackSection { + static [Thing.getPropertyDescriptors] = () => ({ + style: { + flags: {expose: true}, + expose: {compute: () => 'aside'}, + }, + }); + + static [Thing.yamlDocumentSpec] = { + fields: { + 'Aside Section': {property: 'name'}, + }, + }; +} diff --git a/src/data/things/album/CloseAsideTrackSection.js b/src/data/things/album/CloseAsideTrackSection.js new file mode 100644 index 00000000..19d486a6 --- /dev/null +++ b/src/data/things/album/CloseAsideTrackSection.js @@ -0,0 +1,20 @@ +// Mock thing that stands in for closing an "aside" track section. +// Only exists while loading, is discarded during connect(). + +import Thing from '#thing'; +import {isString} from '#validators'; + +export class CloseAsideTrackSection extends Thing { + static [Thing.getPropertyDescriptors] = () => ({ + name: { + flags: {update: true, expose: true}, + update: {validate: isString}, + }, + }); + + static [Thing.yamlDocumentSpec] = { + fields: { + 'Close Aside Section': {property: 'name'}, + }, + }; +} diff --git a/src/data/things/group/Group.js b/src/data/things/group/Group.js index 99ad633b..7437ed96 100644 --- a/src/data/things/group/Group.js +++ b/src/data/things/group/Group.js @@ -46,13 +46,13 @@ export class Group extends Thing { exposeConstant(V(false)), ], - excludeFromGalleryTabs: [ + excludeFromOtherGroupAlbumSummaries: [ exposeUpdateValueOrContinue({ validate: input.value(isBoolean), }), - withPropertyFromObject('category', V('excludeGroupsFromGalleryTabs')), - exposeDependencyOrContinue('#category.excludeGroupsFromGalleryTabs'), + withPropertyFromObject('category', V('excludeGroupsFromOtherGroupAlbumSummaries')), + exposeDependencyOrContinue('#category.excludeGroupsFromOtherGroupAlbumSummaries'), exposeConstant(V(false)), ], @@ -167,8 +167,8 @@ export class Group extends Thing { property: 'useForDividingReferenceLists', }, - 'Exclude From Gallery Tabs': { - property: 'excludeFromGalleryTabs', + 'Exclude From Other Group Album Summaries': { + property: 'excludeFromOtherGroupAlbumSummaries', }, 'Divide Albums By Style': { diff --git a/src/data/things/group/GroupCategory.js b/src/data/things/group/GroupCategory.js index efefb1c9..adc140d8 100644 --- a/src/data/things/group/GroupCategory.js +++ b/src/data/things/group/GroupCategory.js @@ -18,7 +18,7 @@ export class GroupCategory extends Thing { directory: directory(), useGroupsForDividingReferenceLists: flag(V(false)), - excludeGroupsFromGalleryTabs: flag(V(false)), + excludeGroupsFromOtherGroupAlbumSummaries: flag(V(false)), color: color(), @@ -55,8 +55,8 @@ export class GroupCategory extends Thing { property: 'useGroupsForDividingReferenceLists', }, - 'Exclude Groups From Gallery Tabs': { - property: 'excludeGroupsFromGalleryTabs', + 'Exclude Groups From Other Group Album Summaries': { + property: 'excludeGroupsFromOtherGroupAlbumSummaries', }, }, }; |