Fix logout
This commit is contained in:
parent
1dbc54e172
commit
e2348c50d5
2 changed files with 5 additions and 2 deletions
|
@ -33,11 +33,12 @@ module.exports = React.createClass({
|
|||
onAction: function(payload) {
|
||||
switch (payload.action) {
|
||||
case 'logout':
|
||||
mxCliPeg.replace(null);
|
||||
this.setState({
|
||||
logged_in: false,
|
||||
ready: false
|
||||
});
|
||||
mxCliPeg.get().removeAllListeners();
|
||||
mxCliPeg.replace(null);
|
||||
break;
|
||||
case 'view_room':
|
||||
this.setState({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue