mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
23 lines
474 B
JavaScript
23 lines
474 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import alt from '../alt';
|
||
|
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');
|