mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
other loan contract to contract renaming
This commit is contained in:
parent
dd20afff90
commit
90f89e4498
@ -12,7 +12,7 @@ class ContractActions {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchLoanContract(email) {
|
fetchContract(email) {
|
||||||
if(email.match(/.+\@.+\..+/)) {
|
if(email.match(/.+\@.+\..+/)) {
|
||||||
OwnershipFetcher.fetchContract(email)
|
OwnershipFetcher.fetchContract(email)
|
||||||
.then((contracts) => {
|
.then((contracts) => {
|
||||||
|
@ -531,7 +531,7 @@ var ReactS3FineUploader = React.createClass({
|
|||||||
|
|
||||||
handleDeleteFile(fileId) {
|
handleDeleteFile(fileId) {
|
||||||
// In some instances (when the file was already uploaded and is just displayed to the user
|
// In some instances (when the file was already uploaded and is just displayed to the user
|
||||||
// - for example in the loan contract or additional files dialog)
|
// - for example in the contract or additional files dialog)
|
||||||
// fineuploader does not register an id on the file (we do, don't be confused by this!).
|
// fineuploader does not register an id on the file (we do, don't be confused by this!).
|
||||||
// Since you can only delete a file by its id, we have to implement this method ourselves
|
// Since you can only delete a file by its id, we have to implement this method ourselves
|
||||||
//
|
//
|
||||||
|
@ -46,7 +46,7 @@ let SettingsContainer = React.createClass({
|
|||||||
{this.props.children}
|
{this.props.children}
|
||||||
<APISettings />
|
<APISettings />
|
||||||
<BitcoinWalletSettings />
|
<BitcoinWalletSettings />
|
||||||
<LoanContractSettings />
|
<ContractSettings />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
@ -234,7 +234,7 @@ let BitcoinWalletSettings = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let LoanContractSettings = React.createClass({
|
let ContractSettings = React.createClass({
|
||||||
propTypes: {
|
propTypes: {
|
||||||
defaultExpanded: React.PropTypes.bool
|
defaultExpanded: React.PropTypes.bool
|
||||||
},
|
},
|
||||||
@ -242,7 +242,7 @@ let LoanContractSettings = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<CollapsibleParagraph
|
<CollapsibleParagraph
|
||||||
title="Loan Contract Settings"
|
title={getLangText('Contract Settings')}
|
||||||
show={true}
|
show={true}
|
||||||
defaultExpanded={this.props.defaultExpanded}>
|
defaultExpanded={this.props.defaultExpanded}>
|
||||||
<FileUploader />
|
<FileUploader />
|
||||||
@ -266,14 +266,14 @@ let FileUploader = React.createClass({
|
|||||||
fileClass: 'contract'
|
fileClass: 'contract'
|
||||||
}}
|
}}
|
||||||
createBlobRoutine={{
|
createBlobRoutine={{
|
||||||
url: ApiUrls.ownership_loans_contract
|
url: ApiUrls.ownership_contract
|
||||||
}}
|
}}
|
||||||
validation={{
|
validation={{
|
||||||
itemLimit: 100000,
|
itemLimit: 100000,
|
||||||
sizeLimit: '50000000'
|
sizeLimit: '50000000'
|
||||||
}}
|
}}
|
||||||
session={{
|
session={{
|
||||||
endpoint: ApiUrls.ownership_loans_contract,
|
endpoint: ApiUrls.ownership_contract,
|
||||||
customHeaders: {
|
customHeaders: {
|
||||||
'X-CSRFToken': getCookie(AppConstants.csrftoken)
|
'X-CSRFToken': getCookie(AppConstants.csrftoken)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user