mirror of
https://github.com/ascribe/onion.git
synced 2025-01-09 13:21:44 +01:00
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
|
import alt from '../alt';
|
||
|
import PieceListActions from '../actions/piece_list_actions';
|
||
|
|
||
|
class PieceListStore {
|
||
|
constructor() {
|
||
|
this.pieceList = [];
|
||
|
this.bindActions(PieceListActions);
|
||
|
}
|
||
|
|
||
|
onUpdatePieceList(pieceList) {
|
||
|
this.pieceList = pieceList;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default alt.createStore(PieceListStore);
|