summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-27 10:59:44 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-03 12:50:43 -0700
commitd3580a983d4dc20a9613d881b2e771fbd83afc25 (patch)
tree975fbad9eed24e46dab5e8fda7272bdfff83f0f2
parent42c5d0d366cb38866dd6d2ce7e8485ac7a2746a4 (diff)
downloadchat-d3580a983d4dc20a9613d881b2e771fbd83afc25.tar.gz
chat-d3580a983d4dc20a9613d881b2e771fbd83afc25.tar.bz2
chat-d3580a983d4dc20a9613d881b2e771fbd83afc25.zip
The first field of the 'Invite New Member' field can no longer be cleared or deleted
-rw-r--r--web/react/components/invite_member_modal.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx
index fed96b50a..f0f0a36c4 100644
--- a/web/react/components/invite_member_modal.jsx
+++ b/web/react/components/invite_member_modal.jsx
@@ -161,9 +161,11 @@ module.exports = React.createClass({
invite_sections[index] = (
<div key={"key" + index}>
+ { index ?
<div>
<button type="button" className="btn btn-link remove__member" onClick={this.removeInviteFields.bind(this, index)}><span className="fa fa-trash"></span></button>
</div>
+ : "" }
<div className={ email_error ? "form-group invite has-error" : "form-group invite" }>
<input onKeyUp={this.displayNameKeyUp} type="text" ref={"email"+index} className="form-control" placeholder="email@domain.com" maxLength="64" />
{ email_error }