1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00
This commit is contained in:
Cevo 2015-09-03 18:25:12 +02:00
parent 57c4076c1e
commit eb4994b05e
2 changed files with 8 additions and 10 deletions

View File

@ -39,8 +39,6 @@ class ContractActions {
contractEmail: null contractEmail: null
}); });
}); });
} else {
/* No email was entered - Ignore and keep going*/
} }
} }

View File

@ -35,10 +35,10 @@ let ContractSettings = React.createClass({
console.log(contract); console.log(contract);
ContractListActions.makeContractPublic(contract) ContractListActions.makeContractPublic(contract)
.then(( ) => ContractListActions.fetchContractList()) .then(( ) => ContractListActions.fetchContractList())
.catch((error)=>{console.log("Error ", error); .catch((error)=>{console.log('Error ', error);
let notification = new GlobalNotificationModel("Service is unavailable", 'danger', 10000); let notification = new GlobalNotificationModel('Service is unavailable', 'danger', 10000);
GlobalNotificationActions.appendGlobalNotification(notification); GlobalNotificationActions.appendGlobalNotification(notification);
}) });
}, },
getPublicContracts(){ getPublicContracts(){
return this.state.contractList.filter((contract) => contract.public); return this.state.contractList.filter((contract) => contract.public);
@ -75,7 +75,7 @@ let ContractSettings = React.createClass({
<button className="btn btn-default btn-sm margin-left-2px">UPDATE</button> <button className="btn btn-default btn-sm margin-left-2px">UPDATE</button>
<button className="btn btn-default btn-sm margin-left-2px">REMOVE</button> <button className="btn btn-default btn-sm margin-left-2px">REMOVE</button>
</span>} </span>}
/>) />);
} }
) : null } ) : null }
</div>} </div>}
@ -92,7 +92,7 @@ let ContractSettings = React.createClass({
<button className="btn btn-default btn-sm margin-left-2px" >REMOVE</button> <button className="btn btn-default btn-sm margin-left-2px" >REMOVE</button>
<button className="btn btn-default btn-sm margin-left-2px" <button className="btn btn-default btn-sm margin-left-2px"
onClick={this.makeContractPublic.bind(this, contract)}>MAKE PUBLIC</button> </span>} onClick={this.makeContractPublic.bind(this, contract)}>MAKE PUBLIC</button> </span>}
/>) />);
} }
) : null} ) : null}
</div>} </div>}