From 94bdc5e8356834e2cc22695e196ba4f50014d05f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 4 Mar 2024 20:34:01 -0400 Subject: data: contribution: countIn{Contribution,Duration}Totals --- src/data/things/contribution.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/data/things') diff --git a/src/data/things/contribution.js b/src/data/things/contribution.js index 6b7f050f..5594055c 100644 --- a/src/data/things/contribution.js +++ b/src/data/things/contribution.js @@ -9,8 +9,10 @@ import {isStringNonEmpty, isThing, validateReference} from '#validators'; import {exposeDependency} from '#composite/control-flow'; import {withResolvedReference} from '#composite/wiki-data'; +import {flag} from '#composite/wiki-properties'; import { + inheritFromContributionPresets, withContributionArtist, withContributionContext, withMatchingContributionPresets, @@ -47,6 +49,22 @@ export class Contribution extends Thing { update: {validate: isStringNonEmpty}, }, + countInContributionTotals: [ + inheritFromContributionPresets({ + property: input.thisProperty(), + }), + + flag(true), + ], + + countInDurationTotals: [ + inheritFromContributionPresets({ + property: input.thisProperty(), + }), + + flag(true), + ], + // Expose only context: [ -- cgit 1.3.0-6-gf8a5