diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-05-19 16:42:18 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-05-19 16:42:41 -0300 |
| commit | e518aba281c2deca085bcb1245f8da5448f28981 (patch) | |
| tree | 2ac6821944eef52321846ed90905c888e45310ca /src/data/things/Track.js | |
| parent | b47b2936814f6b61c2c8ce40367db2b99076efa2 (diff) | |
data: Track.excludingURLs, etc: false to ignore inherited value
Diffstat (limited to 'src/data/things/Track.js')
| -rw-r--r-- | src/data/things/Track.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/data/things/Track.js b/src/data/things/Track.js index 785d0080..8752b2bb 100644 --- a/src/data/things/Track.js +++ b/src/data/things/Track.js @@ -10,6 +10,7 @@ import Thing from '#thing'; import {compareKebabCase} from '#wiki-data'; import { + anyOf, is, isBoolean, isColor, @@ -385,7 +386,10 @@ export class Track extends Thing { excludingURLs: [ exposeUpdateValueOrContinue({ - validate: input.value(isExcludingURLsReason), + validate: input.value( + anyOf( + is(false), + isExcludingURLsReason)), }), withPropertyFromObject('trackSection', V('excludingTrackURLs')), @@ -1184,9 +1188,9 @@ export class Track extends Thing { ], }, - {message: `Don't include URLs alongside Excluding URLs`, fields: [ + {message: `Don't include URLs alongside Excluding URLs, unless Excluding URLs is false`, fields: [ 'URLs', - 'Excluding URLs', + ['Excluding URLs', v => v !== false], ]}, ], }; |