We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bbe522 + 57b31dc commit 5f557e2Copy full SHA for 5f557e2
src/js/components/navigation.js
@@ -18,10 +18,6 @@ var Navigation = React.createClass({
18
Reflux.listenTo(Actions.getNotifications.failed, 'refreshDone')
19
],
20
21
- // contextTypes: {
22
- // router: React.PropTypes.func
23
- // },
24
-
25
contextTypes: {
26
location: React.PropTypes.object
27
},
@@ -56,6 +52,10 @@ var Navigation = React.createClass({
56
52
57
53
58
54
goToSettings: function () {
55
+ if (this.props.showSearch) {
+ this.props.toggleSearch();
+ }
+
59
this.history.push('/settings');
60
61
0 commit comments