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

23 lines
478 B
JavaScript
Raw Normal View History

2015-08-28 16:18:10 +02:00
'use strict';
import { alt } from '../alt';
2015-08-28 16:18:10 +02:00
import ContractListActions from '../actions/contract_list_actions';
class ContractListStore {
constructor() {
this.contractList = [];
this.bindActions(ContractListActions);
}
onUpdateContractList(contractList) {
this.contractList = contractList;
}
onFlushContractList() {
this.contractList = [];
}
}
export default alt.createStore(ContractListStore, 'ContractListStore');