diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-07 12:19:19 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 17:26:40 -0300 |
commit | 55df0a77ab929592cce98d36db71315c6c534aa2 (patch) | |
tree | d1175659856c72e6e92d517d2337e88c7997473c /src/data/composite/wiki-properties | |
parent | 72f5aafcbb4de53eadef3cd7603856b37ac9cc49 (diff) |
data: apply contribution dates when resolving
Diffstat (limited to 'src/data/composite/wiki-properties')
-rw-r--r-- | src/data/composite/wiki-properties/contributionList.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/composite/wiki-properties/contributionList.js b/src/data/composite/wiki-properties/contributionList.js index 001aed17..a0e6e52b 100644 --- a/src/data/composite/wiki-properties/contributionList.js +++ b/src/data/composite/wiki-properties/contributionList.js @@ -15,7 +15,7 @@ // import {input, templateCompositeFrom} from '#composite'; -import {isContributionList} from '#validators'; +import {isContributionList, isDate} from '#validators'; import {exposeConstant, exposeDependencyOrContinue} from '#composite/control-flow'; import {withResolvedContribs} from '#composite/wiki-data'; @@ -25,12 +25,20 @@ export default templateCompositeFrom({ compose: false, + inputs: { + date: input({ + validate: isDate, + acceptsNull: true, + }), + }, + update: {validate: isContributionList}, steps: () => [ withResolvedContribs({ from: input.updateValue(), thingProperty: input.thisProperty(), + date: input('date'), }), exposeDependencyOrContinue({ |