diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-20 14:50:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 14:50:54 -0700 |
commit | b1715b409228a56539001941d4732f73f741f62b (patch) | |
tree | 834acfeb91dd09f784693ca1ee13723320196f4b /web/src/js/components/common/Button.jsx | |
parent | 5b95803be0796b79090c1f9832feecce0d1f0b5e (diff) | |
parent | 79834676cbb51941b9876fe799452036cf12853f (diff) | |
download | mitmproxy-b1715b409228a56539001941d4732f73f741f62b.tar.gz mitmproxy-b1715b409228a56539001941d4732f73f741f62b.tar.bz2 mitmproxy-b1715b409228a56539001941d4732f73f741f62b.zip |
Merge pull request #1278 from mitmproxy/add_accept_revert_buttons_to_menu_flow
added accept and revert to flowmenu
Diffstat (limited to 'web/src/js/components/common/Button.jsx')
-rw-r--r-- | web/src/js/components/common/Button.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/src/js/components/common/Button.jsx b/web/src/js/components/common/Button.jsx index cc2fe9dd..574288df 100644 --- a/web/src/js/components/common/Button.jsx +++ b/web/src/js/components/common/Button.jsx @@ -5,9 +5,11 @@ Button.propTypes = { text: PropTypes.string.isRequired } -export default function Button({ onClick, text, icon }) { +export default function Button({ onClick, text, icon, disabled }) { return ( - <div className={"btn btn-default"} onClick={onClick}> + <div className={"btn btn-default"} + onClick={onClick} + disabled={disabled}> <i className={"fa fa-fw " + icon}/> {text} |