diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-01-07 11:56:03 -0800 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2016-01-07 12:13:29 -0800 |
commit | d9fcf4d8dbe4a5dc6b48ec769ef048d466b6aaea (patch) | |
tree | 5b12333a7ec5bc1f5d65aa5da39b059fa920a1d2 /web/react/components/invite_member_modal.jsx | |
parent | 5bcb9f1c50ed9c319d2a21f2ecb4816c51d18b40 (diff) | |
download | chat-d9fcf4d8dbe4a5dc6b48ec769ef048d466b6aaea.tar.gz chat-d9fcf4d8dbe4a5dc6b48ec769ef048d466b6aaea.tar.bz2 chat-d9fcf4d8dbe4a5dc6b48ec769ef048d466b6aaea.zip |
Help text in invite member modal now updates according to town-square display name
Diffstat (limited to 'web/react/components/invite_member_modal.jsx')
-rw-r--r-- | web/react/components/invite_member_modal.jsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx index 56bc00a7e..7e1627555 100644 --- a/web/react/components/invite_member_modal.jsx +++ b/web/react/components/invite_member_modal.jsx @@ -8,6 +8,7 @@ import * as Client from '../utils/client.jsx'; import * as EventHelpers from '../dispatcher/event_helpers.jsx'; import ModalStore from '../stores/modal_store.jsx'; import UserStore from '../stores/user_store.jsx'; +import ChannelStore from '../stores/channel_store.jsx'; import TeamStore from '../stores/team_store.jsx'; import ConfirmModal from './confirm_modal.jsx'; @@ -304,6 +305,11 @@ export default class InviteMemberModal extends React.Component { var content = null; var sendButton = null; + var defaultChannelName = ''; + if (ChannelStore.getByName(Constants.DEFAULT_CHANNEL)) { + defaultChannelName = ChannelStore.getByName(Constants.DEFAULT_CHANNEL).display_name; + } + if (this.state.emailEnabled && this.state.userCreationEnabled) { content = ( <div> @@ -312,10 +318,10 @@ export default class InviteMemberModal extends React.Component { type='button' className='btn btn-default' onClick={this.addInviteFields} - >Add another</button> + >{'Add another'}</button> <br/> <br/> - <span>People invited automatically join Town Square channel.</span> + <span>{'People invited automatically join the '}<strong>{defaultChannelName}</strong>{' channel.'}</span> </div> ); |