1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/stores/user_store.js
2015-10-06 16:47:59 +02:00

22 lines
408 B
JavaScript

'use strict';
import { alt } from '../alt';
import UserActions from '../actions/user_actions';
class UserStore {
constructor() {
this.currentUser = {};
this.bindActions(UserActions);
}
onUpdateCurrentUser(user) {
this.currentUser = user;
}
onDeleteCurrentUser() {
this.currentUser = {};
}
}
export default alt.createStore(UserStore, 'UserStore');