aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/Header.jsx
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-08-07 11:05:02 +0800
committerMatthew Shao <me@matshao.com>2017-08-07 11:05:02 +0800
commitf7b494ccf2a90d8c54df760e5142f34f11f8cf3c (patch)
tree9e70578680357bffc89c2bfb48ae978876d6d222 /web/src/js/components/Header.jsx
parent94a0b82ceedf1847a9bc67a6338369583f8410f9 (diff)
downloadmitmproxy-f7b494ccf2a90d8c54df760e5142f34f11f8cf3c.tar.gz
mitmproxy-f7b494ccf2a90d8c54df760e5142f34f11f8cf3c.tar.bz2
mitmproxy-f7b494ccf2a90d8c54df760e5142f34f11f8cf3c.zip
[web] Add HideInStatic Component
HideInStaic compoent will check the MITMWEB_STATIC var, and hide the responsive components in static mode.
Diffstat (limited to 'web/src/js/components/Header.jsx')
-rw-r--r--web/src/js/components/Header.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/src/js/components/Header.jsx b/web/src/js/components/Header.jsx
index ebe7453c..9b7354eb 100644
--- a/web/src/js/components/Header.jsx
+++ b/web/src/js/components/Header.jsx
@@ -8,6 +8,7 @@ import FileMenu from './Header/FileMenu'
import FlowMenu from './Header/FlowMenu'
import {setActiveMenu} from '../ducks/ui/header'
import ConnectionIndicator from "./Header/ConnectionIndicator"
+import HideInStatic from './common/HideInStatic'
class Header extends Component {
static entries = [MainMenu, OptionMenu]
@@ -40,7 +41,9 @@ class Header extends Component {
{Entry.title}
</a>
))}
- <ConnectionIndicator/>
+ <HideInStatic>
+ <ConnectionIndicator/>
+ </HideInStatic>
</nav>
<div>
<Active/>