@eeacms/volto-arcgis-block 0.1.168 → 0.1.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.169](https://github.com/eea/volto-arcgis-block/compare/0.1.168...0.1.169) - 12 July 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - CLMS-2369 (bug): Zoom in message for snow product and datasets works again. Download button is displayed again. [ujbolivar - [`7491001`](https://github.com/eea/volto-arcgis-block/commit/749100148776270f87fa2709a0a7266710cca014)]
7
12
  ### [0.1.168](https://github.com/eea/volto-arcgis-block/compare/0.1.167...0.1.168) - 6 July 2023
8
13
 
9
14
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.168",
3
+ "version": "0.1.169",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -282,7 +282,11 @@ class MenuWidget extends React.Component {
282
282
  let items = [...innerDropdown];
283
283
  let snowAndIce = null;
284
284
  for (let item of items) {
285
- if (item.innerText.includes('Snow and Ice')) {
285
+ let itemParentContainer = item.closest(
286
+ '.map-menu-product-dropdown',
287
+ );
288
+ let productId = itemParentContainer.getAttribute('productid');
289
+ if (productId === '8474c3b080fa42cc837f1d2338fcf096') {
286
290
  snowAndIce = item;
287
291
  break;
288
292
  }