Skip to content

Commit

Permalink
#178 Fix "all" frequencies button, add test disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nospamas committed Mar 12, 2024
1 parent 91d9e8a commit 2b39657
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions public/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ pdpDataUrl: http://docker-dev02.pcic.uvic.ca:30514
plotColor: "#1f77b4"
dataRequestDurations: [1, 3, 6, 12] # months
dataRequestDurationsDefault: 6 # months

# disclaimer:
# enabled: true
# title: "Disclaimer"
# body: |
# The Pacific Climate Impacts Consortium (PCIC), and all monitoring and or funding partners
# who provide data or support to PCIC or its partners for this portal, take no responsibility
# for the accuracy of this data. Portal users acknowledge that they are using data from the
# portal at their own risk.
# buttonLabel: "Agree"
5 changes: 4 additions & 1 deletion src/components/selectors/FrequencySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ function FrequencySelector() {
</InfoPopup>
</div>
<ButtonToolbar className={css.selectorButtons}>
<Button {...selectorButtonProps} onClick={() => onChange(getOptions())}>
<Button
{...selectorButtonProps}
onClick={() => onChange(getOptions(frequencies))}
>
All
</Button>
<Button {...selectorButtonProps} onClick={() => onChange([])}>
Expand Down

0 comments on commit 2b39657

Please sign in to comment.