1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-16 01:55:07 +01:00
onion/js/stores/loan_contract_store.js

21 lines
493 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;
this.bindActions(LoanContractActions);
}
onUpdateLoanContract({contractKey, contractUrl}) {
this.contractKey = contractKey;
this.contractUrl = contractUrl;
}
}
export default alt.createStore(LoanContractStore, 'LoanContractStore');