2015-07-15 14:03:23 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import alt from '../alt';
|
|
|
|
import LoanContractActions from '../actions/loan_contract_actions';
|
|
|
|
|
|
|
|
|
|
|
|
class LoanContractStore {
|
|
|
|
constructor() {
|
|
|
|
this.contractKey = null;
|
|
|
|
this.contractUrl = null;
|
2015-07-15 14:48:51 +02:00
|
|
|
this.contractEmail = null;
|
2015-07-15 14:03:23 +02:00
|
|
|
this.bindActions(LoanContractActions);
|
|
|
|
}
|
|
|
|
|
2015-07-15 14:48:51 +02:00
|
|
|
onUpdateLoanContract({contractKey, contractUrl, contractEmail}) {
|
2015-07-15 14:03:23 +02:00
|
|
|
this.contractKey = contractKey;
|
|
|
|
this.contractUrl = contractUrl;
|
2015-07-15 14:48:51 +02:00
|
|
|
this.contractEmail = contractEmail;
|
2015-07-15 14:03:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default alt.createStore(LoanContractStore, 'LoanContractStore');
|