1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/edition_list_store.js

15 lines
382 B
JavaScript
Raw Normal View History

import alt from '../alt';
import EditionsListActions from '../actions/edition_list_actions';
class EditionListStore {
constructor() {
2015-05-26 13:14:35 +02:00
this.editionList = {};
this.bindActions(EditionsListActions);
}
2015-05-26 13:14:35 +02:00
onUpdateEditionList({pieceId, editionList}) {
this.editionList[pieceId] = editionList;
}
};
export default alt.createStore(EditionListStore);