diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-25 22:42:38 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-25 22:42:38 -0700 |
commit | 70b5918734d996a2b5b3710c2ed519f77f4764d4 (patch) | |
tree | 12aac9f88de68cb79404a3985e6bfe774ad8f066 /web/react/components/invite_member_modal.jsx | |
parent | 473221dbada7ad7739d6a969d9d3d5c9c276941b (diff) | |
parent | ae2898107d275176126ab07ca1886fd7fd7ddad4 (diff) | |
download | chat-70b5918734d996a2b5b3710c2ed519f77f4764d4.tar.gz chat-70b5918734d996a2b5b3710c2ed519f77f4764d4.tar.bz2 chat-70b5918734d996a2b5b3710c2ed519f77f4764d4.zip |
Merge branch 'master' into PLT-25
Diffstat (limited to 'web/react/components/invite_member_modal.jsx')
-rw-r--r-- | web/react/components/invite_member_modal.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx index 4986f88b6..86a4b04cf 100644 --- a/web/react/components/invite_member_modal.jsx +++ b/web/react/components/invite_member_modal.jsx @@ -260,6 +260,12 @@ export default class InviteMemberModal extends React.Component { var content = null; var sendButton = null; + + var sendButtonLabel = 'Send Invitation'; + if (this.state.inviteIds.length > 1) { + sendButtonLabel = 'Send Invitations'; + } + if (this.state.emailEnabled) { content = ( <div> @@ -281,7 +287,7 @@ export default class InviteMemberModal extends React.Component { onClick={this.handleSubmit} type='button' className='btn btn-primary' - >Send Invitations</button> + >{sendButtonLabel}</button> ); } else { var teamInviteLink = null; |