@eeacms/volto-arcgis-block 0.1.217 → 0.1.219
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,13 @@ 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.219](https://github.com/eea/volto-arcgis-block/compare/0.1.218...0.1.219) - 24 October 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Add to cart button disabled if area of interest is no allowed [masanchez85 - [`5682616`](https://github.com/eea/volto-arcgis-block/commit/5682616ce95f62fb61461e8950866902bb8efc26)]
|
|
12
|
+
### [0.1.218](https://github.com/eea/volto-arcgis-block/compare/0.1.217...0.1.218) - 24 October 2023
|
|
13
|
+
|
|
7
14
|
### [0.1.217](https://github.com/eea/volto-arcgis-block/compare/0.1.216...0.1.217) - 23 October 2023
|
|
8
15
|
|
|
9
16
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -417,12 +417,24 @@ class AreaWidget extends React.Component {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
async initFMI() {
|
|
420
|
-
let currentUrl = window.location.href.split('
|
|
421
|
-
let fetchUrl =
|
|
422
|
-
if (
|
|
423
|
-
fetchUrl =
|
|
420
|
+
let currentUrl = window.location.href.split('.eu');
|
|
421
|
+
let fetchUrl = '';
|
|
422
|
+
if (currentUrl[0] === 'https://land.copernicus') {
|
|
423
|
+
fetchUrl = 'https://land.copernicus.eu';
|
|
424
|
+
if (this.getAuthToken()) {
|
|
425
|
+
fetchUrl = fetchUrl + '/++api++/@registry';
|
|
426
|
+
} else {
|
|
427
|
+
fetchUrl = fetchUrl + '/++api++/@anon-registry';
|
|
428
|
+
}
|
|
429
|
+
} else if (currentUrl[0] === 'https://clmsdemo.devel6cph.eea') {
|
|
430
|
+
fetchUrl = 'https://clmsdemo.devel6cph.eea.europa.eu';
|
|
431
|
+
if (this.getAuthToken()) {
|
|
432
|
+
fetchUrl = fetchUrl + '/++api++/@registry';
|
|
433
|
+
} else {
|
|
434
|
+
fetchUrl = fetchUrl + '/++api++/@anon-registry';
|
|
435
|
+
}
|
|
424
436
|
} else {
|
|
425
|
-
fetchUrl =
|
|
437
|
+
fetchUrl = 'https://land.copernicus.eu/++api++/@anon-registry';
|
|
426
438
|
}
|
|
427
439
|
try {
|
|
428
440
|
let nutsResponse = await fetch(fetchUrl + this.props.urls.nutsHandler);
|
|
@@ -107,7 +107,11 @@ export const AddCartItem = ({
|
|
|
107
107
|
) {
|
|
108
108
|
document.getElementById('products_label').click();
|
|
109
109
|
} else {
|
|
110
|
-
if (
|
|
110
|
+
if (
|
|
111
|
+
areaData &&
|
|
112
|
+
document.querySelector('.drawRectanglePopup-block').style
|
|
113
|
+
.display === 'none'
|
|
114
|
+
) {
|
|
111
115
|
checkArea(e);
|
|
112
116
|
}
|
|
113
117
|
}
|
|
@@ -207,7 +207,7 @@ class UseCasesMapViewer extends React.Component {
|
|
|
207
207
|
} else {
|
|
208
208
|
fetchUrl = fetchUrl + '/++api++/@anon-registry';
|
|
209
209
|
}
|
|
210
|
-
} else if (currentUrl[0] === 'https://clmsdemo.devel6cph.eea
|
|
210
|
+
} else if (currentUrl[0] === 'https://clmsdemo.devel6cph.eea') {
|
|
211
211
|
fetchUrl = 'https://clmsdemo.devel6cph.eea.europa.eu';
|
|
212
212
|
if (this.getAuthToken()) {
|
|
213
213
|
fetchUrl = fetchUrl + '/++api++/@registry';
|