mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
22 lines
416 B
JavaScript
22 lines
416 B
JavaScript
'use strict';
|
|
|
|
import { altUser } 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 altUser.createStore(UserStore, 'UserStore');
|