@eeacms/volto-arcgis-block 0.1.176 → 0.1.177
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,8 @@ 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.177](https://github.com/eea/volto-arcgis-block/compare/0.1.176...0.1.177) - 20 July 2023
|
|
8
|
+
|
|
7
9
|
### [0.1.176](https://github.com/eea/volto-arcgis-block/compare/0.1.175...0.1.176) - 20 July 2023
|
|
8
10
|
|
|
9
11
|
### [0.1.175](https://github.com/eea/volto-arcgis-block/compare/0.1.174...0.1.175) - 19 July 2023
|
package/package.json
CHANGED
|
@@ -6,8 +6,6 @@ import useCartState from '@eeacms/volto-clms-utils/cart/useCartState';
|
|
|
6
6
|
import { Modal, Popup } from 'semantic-ui-react';
|
|
7
7
|
import AreaWidget from './AreaWidget';
|
|
8
8
|
import TimesliderWidget from './TimesliderWidget';
|
|
9
|
-
import { Toast } from '@plone/volto/components';
|
|
10
|
-
import { toast } from 'react-toastify';
|
|
11
9
|
var WMSLayer, WMTSLayer, FeatureLayer, BaseTileLayer, esriRequest, Extent;
|
|
12
10
|
|
|
13
11
|
const popupSettings = {
|
|
@@ -57,7 +55,6 @@ export const AddCartItem = ({
|
|
|
57
55
|
}
|
|
58
56
|
let data = checkCartData(cartData, area, dataset);
|
|
59
57
|
addCartItem(data).then(() => {
|
|
60
|
-
showMessageTimer('Added to cart', 'success', 'Success');
|
|
61
58
|
if (dataset.IsTimeSeries) {
|
|
62
59
|
let id = dataset.DatasetId;
|
|
63
60
|
let datasetElem = document.querySelector('[datasetid="' + id + '"]');
|
|
@@ -86,18 +83,6 @@ export const AddCartItem = ({
|
|
|
86
83
|
return data;
|
|
87
84
|
};
|
|
88
85
|
|
|
89
|
-
const showMessageTimer = (msg, type, title) => {
|
|
90
|
-
toast[type](<Toast autoClose={4000} title={title} content={msg} />, {
|
|
91
|
-
position: 'top-center',
|
|
92
|
-
autoClose: 4000,
|
|
93
|
-
hideProgressBar: true,
|
|
94
|
-
closeOnClick: true,
|
|
95
|
-
pauseOnHover: false,
|
|
96
|
-
draggable: true,
|
|
97
|
-
progress: undefined,
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
|
|
101
86
|
if (!dataset) {
|
|
102
87
|
dataset = cartData[0].Products[0].Datasets[0];
|
|
103
88
|
}
|