1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

contract settings update

This commit is contained in:
diminator 2015-09-08 14:43:06 +02:00
parent 9ad713f781
commit e892becc50
2 changed files with 4 additions and 2 deletions

View File

@ -56,12 +56,14 @@ let ContractAgreementForm = React.createClass({
},
getFormData(){
return {'appendix': {'default': this.refs.form.refs.appendix.state.value}};
return {'appendix': {'default': this.refs.form.refs.appendix.state.value},
'contract': this.state.contractList[this.state.selectedContract].id};
},
getContracts() {
if (this.state.contractList && this.state.contractList.length > 0) {
let contractList = this.state.contractList;
console.log(contractList)
return (
<Property
name='contract'

View File

@ -39,7 +39,7 @@ let ContractSettings = React.createClass({
makeContractPublic(contract) {
return () => {
contract.public = true;
contract.is_public = true;
ContractListActions.changeContract(contract)
.then(() => ContractListActions.fetchContractList())
.catch((err) => {