diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-04-30 15:23:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-30 15:23:20 +0200 |
commit | fccc9bc45ef55e3e7f14ee4a51f376c53b418991 (patch) | |
tree | a29c33256f8361d5e332ad874afede02e8b0b061 /web/src/js/ducks/ui/flow.js | |
parent | 29ce5a83d2b4cec067731c2f2f77e1cda134c866 (diff) | |
parent | 97a00728a85a32ca6a8e98a991f6dcf28809e73b (diff) | |
download | mitmproxy-fccc9bc45ef55e3e7f14ee4a51f376c53b418991.tar.gz mitmproxy-fccc9bc45ef55e3e7f14ee4a51f376c53b418991.tar.bz2 mitmproxy-fccc9bc45ef55e3e7f14ee4a51f376c53b418991.zip |
Merge pull request #2271 from mhils/mitmweb-connection-indicator
[web] add connection indicator [WIP]
Diffstat (limited to 'web/src/js/ducks/ui/flow.js')
-rw-r--r-- | web/src/js/ducks/ui/flow.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/ducks/ui/flow.js b/web/src/js/ducks/ui/flow.js index ba604ea2..51ad4184 100644 --- a/web/src/js/ducks/ui/flow.js +++ b/web/src/js/ducks/ui/flow.js @@ -26,7 +26,7 @@ const defaultState = { } export default function reducer(state = defaultState, action) { - let wasInEditMode = !!(state.modifiedFlow) + let wasInEditMode = state.modifiedFlow let content = action.content || state.content let isFullContentShown = content && content.length <= state.maxContentLines @@ -89,14 +89,14 @@ export default function reducer(state = defaultState, action) { ...state, tab: action.tab ? action.tab : 'request', displayLarge: false, - showFullContent: state.contentView == 'Edit' + showFullContent: state.contentView === 'Edit' } case SET_CONTENT_VIEW: return { ...state, contentView: action.contentView, - showFullContent: action.contentView == 'Edit' + showFullContent: action.contentView === 'Edit' } case SET_CONTENT: |