mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +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(/.+\@.+\..+/)) {
|
||||
OwnershipFetcher.fetchContract(email)
|
||||
.then((contracts) => {
|
||||
|
@ -531,7 +531,7 @@ var ReactS3FineUploader = React.createClass({
|
||||
|
||||
handleDeleteFile(fileId) {
|
||||
// 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!).
|
||||
// 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}
|
||||
<APISettings />
|
||||
<BitcoinWalletSettings />
|
||||
<LoanContractSettings />
|
||||
<ContractSettings />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
@ -234,7 +234,7 @@ let BitcoinWalletSettings = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
let LoanContractSettings = React.createClass({
|
||||
let ContractSettings = React.createClass({
|
||||
propTypes: {
|
||||
defaultExpanded: React.PropTypes.bool
|
||||
},
|
||||
@ -242,7 +242,7 @@ let LoanContractSettings = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<CollapsibleParagraph
|
||||
title="Loan Contract Settings"
|
||||
title={getLangText('Contract Settings')}
|
||||
show={true}
|
||||
defaultExpanded={this.props.defaultExpanded}>
|
||||
<FileUploader />
|
||||
@ -266,14 +266,14 @@ let FileUploader = React.createClass({
|
||||
fileClass: 'contract'
|
||||
}}
|
||||
createBlobRoutine={{
|
||||
url: ApiUrls.ownership_loans_contract
|
||||
url: ApiUrls.ownership_contract
|
||||
}}
|
||||
validation={{
|
||||
itemLimit: 100000,
|
||||
sizeLimit: '50000000'
|
||||
}}
|
||||
session={{
|
||||
endpoint: ApiUrls.ownership_loans_contract,
|
||||
endpoint: ApiUrls.ownership_contract,
|
||||
customHeaders: {
|
||||
'X-CSRFToken': getCookie(AppConstants.csrftoken)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user