1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/loan_contract_store.js

29 lines
723 B
JavaScript
Raw Normal View History

'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;
this.bindActions(LoanContractActions);
}
2015-07-15 14:48:51 +02:00
onUpdateLoanContract({contractKey, contractUrl, contractEmail}) {
this.contractKey = contractKey;
this.contractUrl = contractUrl;
2015-07-15 14:48:51 +02:00
this.contractEmail = contractEmail;
}
2015-07-29 15:03:15 +02:00
onFlushLoanContract() {
this.contractKey = null;
this.contractUrl = null;
this.contractEmail = null;
}
}
export default alt.createStore(LoanContractStore, 'LoanContractStore');