mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 18:13:49 +01:00
22 lines
404 B
JavaScript
22 lines
404 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');
|