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:
parent
2bd148407b
commit
2cbf7d0095
@ -88,11 +88,6 @@ class ContractAgreementListActions {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
flushContractAgreementList(){
|
||||
this.actions.updateContractAgreementList(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default alt.createActions(ContractAgreementListActions);
|
||||
|
@ -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(
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user