summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-08 20:24:39 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-08 20:24:39 -0400
commit3ad209892635e733c90dd3d669491051276766bd (patch)
tree35537e57f5cfff4d71291fca64808ab3f09f04fa /web
parent11dde6c44bbb39e88969eb1691cfcf9e21f5ad08 (diff)
parent65dc307e685ad4a0b6df4263edd3f6b890ddd207 (diff)
downloadchat-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')
-rw-r--r--web/react/components/invite_member_modal.jsx7
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)
);