summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-10-23 20:34:21 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-10-23 20:34:21 +0500
commitfb05a16b0c989b1d6e3fd3bda6381036ace2753f (patch)
tree5cccaaaf04604683f22b3bcc8e532f9ddb98995e /web/react/components
parentc0255fcadb22ac7aa5c48c3cf873915a7e40dfe1 (diff)
downloadchat-fb05a16b0c989b1d6e3fd3bda6381036ace2753f.tar.gz
chat-fb05a16b0c989b1d6e3fd3bda6381036ace2753f.tar.bz2
chat-fb05a16b0c989b1d6e3fd3bda6381036ace2753f.zip
Updating nav active bg and Send invitation button
Diffstat (limited to 'web/react/components')
-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;