homeflowjs 0.13.34 → 0.13.36
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/package.json
CHANGED
@@ -126,7 +126,7 @@ const PropertiesDisplay = ({
|
|
126
126
|
{items}
|
127
127
|
</div>
|
128
128
|
{showScrollRef && (
|
129
|
-
<div ref={infiniteScrollRef} />
|
129
|
+
<div ref={infiniteScrollRef} className="hf-property-results__infinite-scroll-trigger" style={{ height: '1px', opacity: 0 }} />
|
130
130
|
)}
|
131
131
|
{showScrollLoader && (
|
132
132
|
<InfiniteScrollLoader />
|
@@ -73,6 +73,9 @@ export default class DraggableMap {
|
|
73
73
|
}
|
74
74
|
Homeflow.kickEvent('map_view_rendered', this);
|
75
75
|
store.dispatch(setLoading({ propertiesMap: false }));
|
76
|
+
if (Homeflow.get('draw_map_search_loader')) {
|
77
|
+
this.drawSearchLoader = document.querySelector(`${Homeflow.get('draw_map_search_loader')}`);
|
78
|
+
}
|
76
79
|
return this.mapLoadedTimes = 2;
|
77
80
|
}
|
78
81
|
|
@@ -652,6 +655,9 @@ export default class DraggableMap {
|
|
652
655
|
fetch(url)
|
653
656
|
.then((response) => response.json())
|
654
657
|
.then((json) => {
|
658
|
+
if (this.drawSearchLoader) {
|
659
|
+
this.drawSearchLoader.style.display = 'none';
|
660
|
+
}
|
655
661
|
store.dispatch(setPagination(json.pagination))
|
656
662
|
// TODO: implement user history
|
657
663
|
// Ctesius.getUserHistoryCollection().addSearch(s);
|
@@ -177,6 +177,11 @@ export default class DrawableMap extends DraggableMap {
|
|
177
177
|
theMap.removeLayer(layer);
|
178
178
|
}
|
179
179
|
});
|
180
|
+
|
181
|
+
if (this.drawSearchLoader) {
|
182
|
+
this.drawSearchLoader.style.display = 'grid';
|
183
|
+
}
|
184
|
+
|
180
185
|
return Homeflow.kickEvent('drawbannertoggled', this);
|
181
186
|
});
|
182
187
|
|
@@ -218,7 +223,7 @@ export default class DrawableMap extends DraggableMap {
|
|
218
223
|
|
219
224
|
this.onPolygonDrawn(layer, true);
|
220
225
|
this.updateURL();
|
221
|
-
window.location.hash = "map
|
226
|
+
window.location.hash = "map";
|
222
227
|
countOfEditedLayers++;
|
223
228
|
});
|
224
229
|
|