1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Implement PR Feedback

This commit is contained in:
Tim Daubenschütz 2015-09-18 13:49:50 +02:00
parent 2bd148407b
commit 2cbf7d0095
4 changed files with 6 additions and 11 deletions

View File

@ -88,11 +88,6 @@ class ContractAgreementListActions {
});
});
}
flushContractAgreementList(){
this.actions.updateContractAgreementList(null);
}
}
export default alt.createActions(ContractAgreementListActions);

View File

@ -77,7 +77,7 @@ let LoanForm = React.createClass({
},
getContractAgreementsOrCreatePublic(email){
ContractAgreementListActions.flushContractAgreementList();
ContractAgreementListActions.flushContractAgreementList.defer();
if (email) {
// fetch the available contractagreements (pending/accepted)
ContractAgreementListActions.fetchAvailableContractAgreementList(email).then(

View File

@ -135,9 +135,9 @@ let IkonotvContractNotifications = React.createClass({
},
getCopyrightAssociationForm(){
let c = this.state.currentUser;
let currentUser = this.state.currentUser;
if (c && c.profile && !c.profile.copyright_association) {
if (currentUser && currentUser.profile && !currentUser.profile.copyright_association) {
return (
<div className='notification-contract-footer'>
<h1>{getLangText('Are you a member of any copyright societies?')}</h1>
@ -145,7 +145,7 @@ let IkonotvContractNotifications = React.createClass({
<p>
{AppConstants.copyrightAssociations.join(', ')}
</p>
<CopyrightAssociationForm currentUser={this.state.currentUser}/>
<CopyrightAssociationForm currentUser={currentUser}/>
</div>
);
}

View File

@ -165,8 +165,8 @@ let IkonotvRegisterPiece = React.createClass({
},
canSubmit() {
let c = this.state.currentUser;
return c && c.acl && c.acl.acl_submit;
let currentUser = this.state.currentUser;
return currentUser && currentUser.acl && currentUser.acl.acl_submit;
},
getSlideArtistDetails() {