1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

other loan contract to contract renaming

This commit is contained in:
Tim Daubenschütz 2015-08-31 11:05:33 +02:00
parent dd20afff90
commit 90f89e4498
3 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ class ContractActions {
);
}
fetchLoanContract(email) {
fetchContract(email) {
if(email.match(/.+\@.+\..+/)) {
OwnershipFetcher.fetchContract(email)
.then((contracts) => {

View File

@ -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
//

View File

@ -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)
},