mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +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);
|
export default alt.createActions(ContractAgreementListActions);
|
||||||
|
@ -77,7 +77,7 @@ let LoanForm = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getContractAgreementsOrCreatePublic(email){
|
getContractAgreementsOrCreatePublic(email){
|
||||||
ContractAgreementListActions.flushContractAgreementList();
|
ContractAgreementListActions.flushContractAgreementList.defer();
|
||||||
if (email) {
|
if (email) {
|
||||||
// fetch the available contractagreements (pending/accepted)
|
// fetch the available contractagreements (pending/accepted)
|
||||||
ContractAgreementListActions.fetchAvailableContractAgreementList(email).then(
|
ContractAgreementListActions.fetchAvailableContractAgreementList(email).then(
|
||||||
|
@ -135,9 +135,9 @@ let IkonotvContractNotifications = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getCopyrightAssociationForm(){
|
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 (
|
return (
|
||||||
<div className='notification-contract-footer'>
|
<div className='notification-contract-footer'>
|
||||||
<h1>{getLangText('Are you a member of any copyright societies?')}</h1>
|
<h1>{getLangText('Are you a member of any copyright societies?')}</h1>
|
||||||
@ -145,7 +145,7 @@ let IkonotvContractNotifications = React.createClass({
|
|||||||
<p>
|
<p>
|
||||||
{AppConstants.copyrightAssociations.join(', ')}
|
{AppConstants.copyrightAssociations.join(', ')}
|
||||||
</p>
|
</p>
|
||||||
<CopyrightAssociationForm currentUser={this.state.currentUser}/>
|
<CopyrightAssociationForm currentUser={currentUser}/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -165,8 +165,8 @@ let IkonotvRegisterPiece = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
canSubmit() {
|
canSubmit() {
|
||||||
let c = this.state.currentUser;
|
let currentUser = this.state.currentUser;
|
||||||
return c && c.acl && c.acl.acl_submit;
|
return currentUser && currentUser.acl && currentUser.acl.acl_submit;
|
||||||
},
|
},
|
||||||
|
|
||||||
getSlideArtistDetails() {
|
getSlideArtistDetails() {
|
||||||
|
Loading…
Reference in New Issue
Block a user