mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Hotfix for sending contract agreements without appendices
This commit is contained in:
parent
6e9b1ac181
commit
38ef18a192
@ -62,7 +62,11 @@ let SendContractAgreementForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getFormData() {
|
getFormData() {
|
||||||
return {'appendix': {'default': this.refs.form.refs.appendix.state.value}};
|
const appendixValue = this.refs.form.refs.appendix.state.value;
|
||||||
|
|
||||||
|
if (appendixValue) {
|
||||||
|
return { 'appendix': { 'default': appendixValue } };
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getContracts() {
|
getContracts() {
|
||||||
@ -124,7 +128,8 @@ let SendContractAgreementForm = React.createClass({
|
|||||||
<Property
|
<Property
|
||||||
name='appendix'
|
name='appendix'
|
||||||
checkboxLabel={getLangText('Add appendix to the contract')}
|
checkboxLabel={getLangText('Add appendix to the contract')}
|
||||||
expanded={false}>
|
expanded={false}
|
||||||
|
style={{paddingBottom: 0}}>
|
||||||
<span>{getLangText('Appendix')}</span>
|
<span>{getLangText('Appendix')}</span>
|
||||||
{/* We're using disabled on a form here as PropertyCollapsible currently
|
{/* We're using disabled on a form here as PropertyCollapsible currently
|
||||||
does not support the disabled + overrideForm functionality */}
|
does not support the disabled + overrideForm functionality */}
|
||||||
|
Loading…
Reference in New Issue
Block a user