diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 22:47:50 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 22:47:50 +0100 |
commit | 222106916e8c57ed9ab83f7c0c8d8a76d53ab298 (patch) | |
tree | 743898632b9f2b1d83d8a05a6725ab3311ae3ca9 /web/src/js/components/ContentView/ContentViewOptions.jsx | |
parent | d15ddfad14052b7fd971f3b82bbb86e7ec39c40b (diff) | |
parent | 45332006a3da246679e6043b4abee06cd3ba0636 (diff) | |
download | mitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.tar.gz mitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.tar.bz2 mitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.zip |
Merge branch 'mitmweb-eventlog'
Diffstat (limited to 'web/src/js/components/ContentView/ContentViewOptions.jsx')
-rw-r--r-- | web/src/js/components/ContentView/ContentViewOptions.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/js/components/ContentView/ContentViewOptions.jsx b/web/src/js/components/ContentView/ContentViewOptions.jsx index fed3a088..6bc66db2 100644 --- a/web/src/js/components/ContentView/ContentViewOptions.jsx +++ b/web/src/js/components/ContentView/ContentViewOptions.jsx @@ -9,15 +9,14 @@ ContentViewOptions.propTypes = { message: React.PropTypes.object.isRequired, } -function ContentViewOptions(props) { - const { flow, message, uploadContent, readonly, contentViewDescription } = props +function ContentViewOptions({ flow, message, uploadContent, readonly, contentViewDescription }) { return ( <div className="view-options"> <ViewSelector message={message}/> <DownloadContentButton flow={flow} message={message}/> - <UploadContentButton uploadContent={uploadContent}/> + {!readonly && <UploadContentButton uploadContent={uploadContent}/> } <span>{contentViewDescription}</span> </div> @@ -26,6 +25,7 @@ function ContentViewOptions(props) { export default connect( state => ({ - contentViewDescription: state.ui.flow.viewDescription + contentViewDescription: state.ui.flow.viewDescription, + readonly: !state.ui.flow.modifiedFlow, }) )(ContentViewOptions) |