diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-25 17:50:59 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-07-25 17:50:59 -0700 |
commit | 3ebb58f641612a4c512c045187ffe40879720fa7 (patch) | |
tree | b1ab143b42c00b9cfd53b1e78f740fdc14e5a5bb /web/src/js/components | |
parent | 03a596d1d92e12125f0624626b040dc2919e24c6 (diff) | |
download | mitmproxy-3ebb58f641612a4c512c045187ffe40879720fa7.tar.gz mitmproxy-3ebb58f641612a4c512c045187ffe40879720fa7.tar.bz2 mitmproxy-3ebb58f641612a4c512c045187ffe40879720fa7.zip |
add up/download button to ContentTooLarge view
Diffstat (limited to 'web/src/js/components')
-rw-r--r-- | web/src/js/components/ContentView/MetaViews.jsx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/web/src/js/components/ContentView/MetaViews.jsx b/web/src/js/components/ContentView/MetaViews.jsx index 2d064b54..b926738e 100644 --- a/web/src/js/components/ContentView/MetaViews.jsx +++ b/web/src/js/components/ContentView/MetaViews.jsx @@ -1,5 +1,7 @@ import React from 'react' import { formatSize } from '../../utils.js' +import UploadContentButton from './UploadContentButton' +import DownloadContentButton from './DownloadContentButton' export function ContentEmpty({ flow, message }) { return ( @@ -17,11 +19,19 @@ export function ContentMissing({ flow, message }) { ) } -export function ContentTooLarge({ message, onClick }) { +export function ContentTooLarge({ message, onClick, uploadContent, flow }) { return ( - <div className="alert alert-warning"> - <button onClick={onClick} className="btn btn-xs btn-warning pull-right">Display anyway</button> - {formatSize(message.contentLength)} content size. + <div> + <div className="alert alert-warning"> + + <button onClick={onClick} className="btn btn-xs btn-warning pull-right">Display anyway</button> + {formatSize(message.contentLength)} content size. + </div> + <div className="view-options text-center"> + <UploadContentButton uploadContent={uploadContent}/> + + <DownloadContentButton flow={flow} message={message}/> + </div> </div> ) } |