Skip to content

Commit

Permalink
Merge pull request #684 from eea/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Urkorue authored Nov 11, 2024
2 parents 5e12a72 + e822996 commit df821b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [1.1.197](https://github.com/eea/volto-clms-theme/compare/1.1.196...1.1.197) - 11 November 2024

### [1.1.196](https://github.com/eea/volto-clms-theme/compare/1.1.195...1.1.196) - 6 November 2024

#### :bug: Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-clms-theme",
"version": "1.1.196",
"version": "1.1.197",
"description": "volto-clms-theme: Volto theme for CLMS site",
"main": "src/index.js",
"author": "CodeSyntax for the European Environment Agency",
Expand Down
4 changes: 4 additions & 0 deletions src/components/CLMSDownloadCartView/CLMSCartContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ const CLMSCartContent = (props) => {
datasetTimeseries.datasets[item?.dataset_uid]
?.download_limit_temporal_extent
}
data_arrays={
datasetTimeseries.datasets[item?.dataset_uid]
?.data_arrays
}
item={item}
setTimeseriesValue={setTimeseriesValue}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const TimeseriesPicker = (props) => {
item,
download_limit_temporal_extent,
setTimeseriesValue,
data_arrays,
} = props;
const [startValue, setStartValue] = useState(
item?.TemporalFilter?.StartDate
Expand All @@ -33,7 +34,7 @@ export const TimeseriesPicker = (props) => {
const diffDays = Math.round(Math.abs((start - end) / oneDay));
return diffDays < limit;
};

const dates_array = data_arrays.map((e) => new Date(e));
return (
<>
<Popup
Expand Down Expand Up @@ -99,6 +100,8 @@ export const TimeseriesPicker = (props) => {
dropdownMode="select"
showMonthDropdown
showYearDropdown
includeDates={dates_array}
disabledKeyboardNavigation
>
{(item?.TemporalFilter?.StartDate ||
item?.TemporalFilter?.EndDate) && (
Expand Down

0 comments on commit df821b3

Please sign in to comment.