mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
24 lines
538 B
JavaScript
24 lines
538 B
JavaScript
import alt from '../alt';
|
|
|
|
import EditionListFetcher from '../fetchers/edition_list_fetcher.js';
|
|
|
|
class EditionListActions {
|
|
constructor() {
|
|
this.generateActions(
|
|
'updateEditionList'
|
|
);
|
|
}
|
|
|
|
fetchList() {
|
|
EditionListFetcher
|
|
.fetch()
|
|
.then((res) => {
|
|
this.actions.updateEditionList(res.pieces);
|
|
})
|
|
.catch((err) => {
|
|
console.log(err);
|
|
});
|
|
}
|
|
};
|
|
|
|
export default alt.createActions(EditionListActions); |