aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/flowview/index.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-02-28 22:35:08 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-02-28 22:35:08 +0100
commitcbb068edaaa4a91297cc8c6416dcbc274b3e1317 (patch)
tree74a21b74a402295c3e5f687babda30b4682e37de /web/src/js/components/flowview/index.js
parentade5078ebde142a83692bd5e940f6463e6ee52c7 (diff)
downloadmitmproxy-cbb068edaaa4a91297cc8c6416dcbc274b3e1317.tar.gz
mitmproxy-cbb068edaaa4a91297cc8c6416dcbc274b3e1317.tar.bz2
mitmproxy-cbb068edaaa4a91297cc8c6416dcbc274b3e1317.zip
fix up web stuff
Diffstat (limited to 'web/src/js/components/flowview/index.js')
-rw-r--r--web/src/js/components/flowview/index.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/web/src/js/components/flowview/index.js b/web/src/js/components/flowview/index.js
index 739a46dc..91b17dd2 100644
--- a/web/src/js/components/flowview/index.js
+++ b/web/src/js/components/flowview/index.js
@@ -40,13 +40,7 @@ var FlowView = React.createClass({
this.selectTab(tabs[nextIndex]);
},
selectTab: function (panel) {
- this.replaceWith(
- "flow",
- {
- flowId: this.getParams().flowId,
- detailTab: panel
- }
- );
+ this.replaceWith(`/flows/${this.getParams().flowId}/${panel}`);
},
getActive: function(){
return this.getParams().detailTab;
@@ -93,7 +87,7 @@ var FlowView = React.createClass({
var tabs = this.getTabs(flow);
var active = this.getActive();
- if (!_.contains(tabs, active)) {
+ if (tabs.indexOf(active) < 0) {
if (active === "response" && flow.error) {
active = "error";
} else if (active === "error" && flow.response) {