Skip to content

Commit 5f557e2

Browse files
Merge branch 'master' into fix-positioning
2 parents 2bbe522 + 57b31dc commit 5f557e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/components/navigation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ var Navigation = React.createClass({
1818
Reflux.listenTo(Actions.getNotifications.failed, 'refreshDone')
1919
],
2020

21-
// contextTypes: {
22-
// router: React.PropTypes.func
23-
// },
24-
2521
contextTypes: {
2622
location: React.PropTypes.object
2723
},
@@ -56,6 +52,10 @@ var Navigation = React.createClass({
5652
},
5753

5854
goToSettings: function () {
55+
if (this.props.showSearch) {
56+
this.props.toggleSearch();
57+
}
58+
5959
this.history.push('/settings');
6060
},
6161

0 commit comments

Comments
 (0)