summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-21 15:55:34 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-21 15:58:11 -0400
commitd4fd000ccfc4f9c128cf178755dd3b1df0cf3894 (patch)
tree778f47064f68e0a7a8970916abd7a3dde32f8b66 /web/react/components/create_post.jsx
parent7b28880294865c7441ce8b4b3efc14b1417cb5e5 (diff)
downloadchat-d4fd000ccfc4f9c128cf178755dd3b1df0cf3894.tar.gz
chat-d4fd000ccfc4f9c128cf178755dd3b1df0cf3894.tar.bz2
chat-d4fd000ccfc4f9c128cf178755dd3b1df0cf3894.zip
Added handling for when the user is ^ responding to a post that gets deleted
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 7b7e38ac2..efb5efd80 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -92,7 +92,13 @@ module.exports = React.createClass({
}.bind(this),
function(err) {
var state = {}
- state.server_error = err.message;
+
+ if (err.message === "Invalid RootId parameter") {
+ if ($('#post_deleted').length > 0) $('#post_deleted').modal('show');
+ } else {
+ state.server_error = err.message;
+ }
+
state.submitting = false;
this.setState(state);
}.bind(this)