mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
25 lines
494 B
JavaScript
25 lines
494 B
JavaScript
'use strict';
|
|
|
|
import { alt } from '../alt';
|
|
import EditionActions from '../actions/edition_actions';
|
|
|
|
|
|
class EditionStore {
|
|
constructor() {
|
|
this.edition = {};
|
|
this.editionError = null;
|
|
this.bindActions(EditionActions);
|
|
}
|
|
|
|
onUpdateEdition(edition) {
|
|
this.edition = edition;
|
|
this.editionError = null;
|
|
}
|
|
|
|
onEditionFailed(error) {
|
|
this.editionError = error;
|
|
}
|
|
}
|
|
|
|
export default alt.createStore(EditionStore, 'EditionStore');
|