Clean up /logout command flow and errors (#4918)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
28a7a2f200
Коммит
2a91e5e031
@@ -125,6 +125,11 @@ export default class CreatePost extends React.Component {
|
||||
(data) => {
|
||||
this.setState({submitting: false});
|
||||
|
||||
if (post.message.trim() === '/logout') {
|
||||
GlobalActions.clientLogout(data.goto_location);
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.goto_location && data.goto_location.length > 0) {
|
||||
browserHistory.push(data.goto_location);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user