homeflowjs 0.13.46 → 0.13.47
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
@@ -3,7 +3,7 @@ import DraggableMap from './draggable-map';
|
|
3
3
|
import store from '../../store';
|
4
4
|
import { currentGeonameId, filterGeonames, uniqueGeonamesByNameAndArea } from '../../utils/index';
|
5
5
|
import { setProperties, setGeonames, setSelectedMarker } from '../../actions/properties.actions';
|
6
|
-
import {
|
6
|
+
import { setCurrentSearch, setPlace, setSearchField } from '../../actions/search.actions';
|
7
7
|
import { buildQueryString } from '../../search/property-search/property-search';
|
8
8
|
import mapLoader from './map-loader';
|
9
9
|
import './geonames.css';
|
@@ -305,7 +305,7 @@ export default class GeonamesMap extends DraggableMap {
|
|
305
305
|
|
306
306
|
if (json.location) {
|
307
307
|
store.dispatch(setPlace(json.location));
|
308
|
-
store.dispatch(
|
308
|
+
store.dispatch(setCurrentSearch({ q: json.location.name }));
|
309
309
|
}
|
310
310
|
|
311
311
|
this.setMarkers();
|
@@ -15,6 +15,7 @@ const UserRegisterForm = (props) => {
|
|
15
15
|
setLoading,
|
16
16
|
doNotContact,
|
17
17
|
marketingStatement,
|
18
|
+
redirectHash,
|
18
19
|
...otherProps
|
19
20
|
} = props;
|
20
21
|
|
@@ -40,6 +41,10 @@ const UserRegisterForm = (props) => {
|
|
40
41
|
.then(() => {
|
41
42
|
setLoading({ userRegister: false });
|
42
43
|
notify('You have been successfully registered!', 'success');
|
44
|
+
|
45
|
+
if (redirectHash) {
|
46
|
+
window.location.hash = redirectHash;
|
47
|
+
}
|
43
48
|
})
|
44
49
|
.catch(() => {
|
45
50
|
notify(
|
@@ -69,11 +74,13 @@ UserRegisterForm.propTypes = {
|
|
69
74
|
setLoading: PropTypes.func.isRequired,
|
70
75
|
doNotContact: PropTypes.bool,
|
71
76
|
marketingStatement: PropTypes.string,
|
77
|
+
redirectHash: PropTypes.string,
|
72
78
|
};
|
73
79
|
|
74
80
|
UserRegisterForm.defaultProps = {
|
75
81
|
doNotContact: false,
|
76
82
|
marketingStatement: 'Marketing preferences communications', // TODO: get generic message and all themes to supply statement.
|
83
|
+
redirectHash: null,
|
77
84
|
};
|
78
85
|
|
79
86
|
const mapStateToProps = (state) => ({
|