1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-29 00:58:03 +02:00
onion/js/stores/contract_agreement_list_store.js

23 lines
600 B
JavaScript
Raw Normal View History

'use strict';
import { alt } from '../alt';
import ContractAgreementListActions from '../actions/contract_agreement_list_actions';
class ContractAgreementListStore {
constructor() {
this.contractAgreementList = null;
this.bindActions(ContractAgreementListActions);
}
onUpdateContractAgreementList(contractAgreementList) {
this.contractAgreementList = contractAgreementList;
}
onFlushContractAgreementList() {
this.contractAgreementList = null;
}
}
export default alt.createStore(ContractAgreementListStore, 'ContractAgreementListStore');