summaryrefslogtreecommitdiffstats
path: root/web/react/components/invite_member_modal.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-23 14:57:31 -0700
committerCorey Hulen <corey@hulen.com>2015-10-23 14:57:31 -0700
commit127a689e3e314fe673803f89347312098517848a (patch)
tree3d8f6819ec0ac79a54cac06720d34a79053dc452 /web/react/components/invite_member_modal.jsx
parenta7852a4810b26436cd9ab952d013d610d9d8ec6b (diff)
parent9ac29075e1acae8006150ffa3d820e59a8e0ed9b (diff)
downloadchat-127a689e3e314fe673803f89347312098517848a.tar.gz
chat-127a689e3e314fe673803f89347312098517848a.tar.bz2
chat-127a689e3e314fe673803f89347312098517848a.zip
Merge pull request #1162 from asaadmahmoodspin/ui-improvements
UI improvements
Diffstat (limited to 'web/react/components/invite_member_modal.jsx')
-rw-r--r--web/react/components/invite_member_modal.jsx8
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;