summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_post.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r--webapp/components/create_post.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index 8e75b6070..13a8c729f 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -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);
}