diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-07-08 20:24:39 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-07-08 20:24:39 -0400 |
commit | 3ad209892635e733c90dd3d669491051276766bd (patch) | |
tree | 35537e57f5cfff4d71291fca64808ab3f09f04fa /web/react | |
parent | 11dde6c44bbb39e88969eb1691cfcf9e21f5ad08 (diff) | |
parent | 65dc307e685ad4a0b6df4263edd3f6b890ddd207 (diff) | |
download | chat-3ad209892635e733c90dd3d669491051276766bd.tar.gz chat-3ad209892635e733c90dd3d669491051276766bd.tar.bz2 chat-3ad209892635e733c90dd3d669491051276766bd.zip |
Merge pull request #149 from rgarmsen2295/mm-1260
MM-1260 Member Invites can no longer be sent to emails already used to signup
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/invite_member_modal.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx index d1672126d..9ff67ae1b 100644 --- a/web/react/components/invite_member_modal.jsx +++ b/web/react/components/invite_member_modal.jsx @@ -89,7 +89,12 @@ module.exports = React.createClass({ $(this.refs.modal.getDOMNode()).modal('hide'); }.bind(this), function(err) { - this.setState({ server_error: err }); + if (err.message === "This person is already on your team") { + email_errors[err.detailed_error] = err.message; + this.setState({ email_errors: email_errors }); + } + else + this.setState({ server_error: err.message}); }.bind(this) ); |