summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-11 14:18:20 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-11 14:18:20 -0500
commitd29abb8f86319f45c54dfffc52217c80fd570c22 (patch)
tree99ecf38f9d8c7fd03bd7ed4ffecb5b6ca3fc220a /web
parent395d51dda623136b8bb3e96cfa8ade33010b844a (diff)
parentb35146e9b81fa6fd8934fe590c2a2854e6a5b1d5 (diff)
downloadchat-d29abb8f86319f45c54dfffc52217c80fd570c22.tar.gz
chat-d29abb8f86319f45c54dfffc52217c80fd570c22.tar.bz2
chat-d29abb8f86319f45c54dfffc52217c80fd570c22.zip
Merge pull request #2153 from mattermost/plt-1939
RC2 PLT-1939 Fix localization error for team invites
Diffstat (limited to 'web')
-rw-r--r--web/react/components/team_signup_email_item.jsx2
-rw-r--r--web/react/components/team_signup_send_invites_page.jsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/team_signup_email_item.jsx b/web/react/components/team_signup_email_item.jsx
index feb70dc71..790ec2e5d 100644
--- a/web/react/components/team_signup_email_item.jsx
+++ b/web/react/components/team_signup_email_item.jsx
@@ -83,4 +83,4 @@ TeamSignupEmailItem.propTypes = {
email: React.PropTypes.string
};
-export default injectIntl(TeamSignupEmailItem); \ No newline at end of file
+export default injectIntl(TeamSignupEmailItem, {withRef: true});
diff --git a/web/react/components/team_signup_send_invites_page.jsx b/web/react/components/team_signup_send_invites_page.jsx
index 46a6bc68e..343db13e8 100644
--- a/web/react/components/team_signup_send_invites_page.jsx
+++ b/web/react/components/team_signup_send_invites_page.jsx
@@ -33,8 +33,8 @@ export default class TeamSignupSendInvitesPage extends React.Component {
var emails = [];
for (var i = 0; i < this.props.state.invites.length; i++) {
- if (this.refs['email_' + i].validate(this.props.state.team.email)) {
- emails.push(this.refs['email_' + i].getValue());
+ if (this.refs['email_' + i].getWrappedInstance().validate(this.props.state.team.email)) {
+ emails.push(this.refs['email_' + i].getWrappedInstance().getValue());
} else {
valid = false;
}