mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
15 lines
382 B
JavaScript
15 lines
382 B
JavaScript
import alt from '../alt';
|
|
import EditionsListActions from '../actions/edition_list_actions';
|
|
|
|
class EditionListStore {
|
|
constructor() {
|
|
this.editionList = {};
|
|
this.bindActions(EditionsListActions);
|
|
}
|
|
|
|
onUpdateEditionList({pieceId, editionList}) {
|
|
this.editionList[pieceId] = editionList;
|
|
}
|
|
};
|
|
|
|
export default alt.createStore(EditionListStore); |