Skip to content

Commit

Permalink
Merge pull request #1248 from cmu-delphi/release/v3.2.10
Browse files Browse the repository at this point in the history
Release v3.2.10
  • Loading branch information
melange396 committed Apr 23, 2024
2 parents 8255f7a + 4615aba commit 084b9be
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 144 deletions.
160 changes: 56 additions & 104 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "www-covidcast",
"version": "3.2.9",
"version": "3.2.10",
"private": true,
"license": "MIT",
"description": "",
Expand Down
9 changes: 7 additions & 2 deletions src/blocks/IndicatorWarning.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
<div data-uk-alert class="uk-alert-warning">
The indicator "{sensor.name}" is not available for {formatDateYearDayOfWeekAbbr(date.value)}, yet. The latest
known data is available on
<a href="?date={formatAPITime(sensor.timeFrame.max)}" on:click={switchDate}
>{formatDateYearDayOfWeekAbbr(sensor.timeFrame.max)}</a
<!--
window.location.search.split('&').slice(1).join('&') is used to keep the query parameters except the date parameter.
So we are getting query params from url, splitting them by & and removing the first element which is date parameter.
-->
<a
href="?date={formatAPITime(sensor.timeFrame.max)}&{window.location.search.split('&').slice(1).join('&')}"
on:click={switchDate}>{formatDateYearDayOfWeekAbbr(sensor.timeFrame.max)}</a
>.
</div>
{/if}
Expand Down
Loading

0 comments on commit 084b9be

Please sign in to comment.