diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 09:37:26 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 09:37:26 -0700 |
commit | c84e091f2a55d12889e6ad4cb3a94017035fd881 (patch) | |
tree | fef43584cc421475674e2aa2d1cf95f46dbabe7b /web/react | |
parent | b7a821c3410ecd165241e2dbcf2c8376ae402124 (diff) | |
download | chat-c84e091f2a55d12889e6ad4cb3a94017035fd881.tar.gz chat-c84e091f2a55d12889e6ad4cb3a94017035fd881.tar.bz2 chat-c84e091f2a55d12889e6ad4cb3a94017035fd881.zip |
Invalid RootId parameter error message no longer displays on the client. Changed acceptance of error from Agree to Okay.
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/create_comment.jsx | 3 | ||||
-rw-r--r-- | web/react/components/post_deleted_modal.jsx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 3534c7573..0b8eb4a07 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -55,9 +55,6 @@ module.exports = React.createClass({ }.bind(this), function(err) { - var state = {} - state.server_error = err.message; - this.setState(state); if (err.message === "Invalid RootId parameter") { if ($('#post_deleted').length > 0) $('#post_deleted').modal('show'); } diff --git a/web/react/components/post_deleted_modal.jsx b/web/react/components/post_deleted_modal.jsx index 307120df3..83b007bad 100644 --- a/web/react/components/post_deleted_modal.jsx +++ b/web/react/components/post_deleted_modal.jsx @@ -23,7 +23,7 @@ module.exports = React.createClass({ <p>Someone deleted the message on which you tried to post a comment.</p> </div> <div className="modal-footer"> - <button type="button" className="btn btn-primary" data-dismiss="modal">Agree</button> + <button type="button" className="btn btn-primary" data-dismiss="modal">Okay</button> </div> </div> </div> |