From 79834676cbb51941b9876fe799452036cf12853f Mon Sep 17 00:00:00 2001
From: Clemens <cle1000.cb@gmail.com>
Date: Mon, 20 Jun 2016 10:20:41 +0200
Subject: added accept and revert to flowmenu

---
 web/src/js/components/common/Button.jsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'web/src/js/components/common/Button.jsx')

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}/>
             &nbsp;
             {text}
-- 
cgit v1.2.3

