aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/mainview.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-03-30 00:46:33 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-03-30 00:46:33 +0200
commit737002921e9aed701afb49fda8777e8c9286bf09 (patch)
tree18ed50c44e63e6a854397ac19fba8d3e315a06b5 /web/src/js/components/mainview.js
parenta32698fc0410068774a240d9485934c889102223 (diff)
downloadmitmproxy-737002921e9aed701afb49fda8777e8c9286bf09.tar.gz
mitmproxy-737002921e9aed701afb49fda8777e8c9286bf09.tar.bz2
mitmproxy-737002921e9aed701afb49fda8777e8c9286bf09.zip
s/filter/search/
no matter what we agree on in #542, this needs to be done anyway.
Diffstat (limited to 'web/src/js/components/mainview.js')
-rw-r--r--web/src/js/components/mainview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/components/mainview.js b/web/src/js/components/mainview.js
index 8f6989ae..2b7819c5 100644
--- a/web/src/js/components/mainview.js
+++ b/web/src/js/components/mainview.js
@@ -41,7 +41,7 @@ var MainView = React.createClass({
},
getViewFilt: function () {
try {
- var filt = Filt.parse(this.getQuery()[Query.FILTER] || "");
+ var filt = Filt.parse(this.getQuery()[Query.SEARCH] || "");
var highlightStr = this.getQuery()[Query.HIGHLIGHT];
var highlight = highlightStr ? Filt.parse(highlightStr) : false;
} catch (e) {
@@ -57,7 +57,7 @@ var MainView = React.createClass({
};
},
componentWillReceiveProps: function (nextProps) {
- var filterChanged = (this.props.query[Query.FILTER] !== nextProps.query[Query.FILTER]);
+ var filterChanged = (this.props.query[Query.SEARCH] !== nextProps.query[Query.SEARCH]);
var highlightChanged = (this.props.query[Query.HIGHLIGHT] !== nextProps.query[Query.HIGHLIGHT]);
if (filterChanged || highlightChanged) {
this.state.view.recalculate(this.getViewFilt(), this.state.sortKeyFun);