diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:09:57 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:09:57 -0700 |
commit | 3895599c8f6ddc987a5c92ded800228547348dc6 (patch) | |
tree | 9bfbd90382779e1a0a1be0377d19acd74133796b /web/react | |
parent | 5f4daf6e20b0e6087ea9b0e985335d4602f52d45 (diff) | |
download | chat-3895599c8f6ddc987a5c92ded800228547348dc6.tar.gz chat-3895599c8f6ddc987a5c92ded800228547348dc6.tar.bz2 chat-3895599c8f6ddc987a5c92ded800228547348dc6.zip |
Error messages revolving around comment creation appear clientside unless we have a better solution in place
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/create_comment.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 0b8eb4a07..9bcbad079 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -55,9 +55,15 @@ 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 { + this.setState(state); + } }.bind(this) ); }, |