1
0
mirror of https://github.com/ascribe/onion.git synced 2024-07-01 06:02:12 +02:00
onion/js/stores/edition_store.js

25 lines
494 B
JavaScript
Raw Normal View History

'use strict';
import { alt } from '../alt';
import EditionActions from '../actions/edition_actions';
2015-05-26 13:48:46 +02:00
class EditionStore {
constructor() {
2015-05-26 13:48:46 +02:00
this.edition = {};
2015-10-19 15:29:57 +02:00
this.editionError = null;
this.bindActions(EditionActions);
}
2015-05-26 13:48:46 +02:00
onUpdateEdition(edition) {
this.edition = edition;
2015-10-19 15:29:57 +02:00
this.editionError = null;
}
onEditionFailed(error) {
this.editionError = error;
}
}
2015-06-15 08:44:44 +02:00
export default alt.createStore(EditionStore, 'EditionStore');