summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-05 10:38:40 -0700
committernickago <ngonella@calpoly.edu>2015-08-05 12:19:46 -0700
commit371b1e04eb892109cd44f18230e0247dc5aabe43 (patch)
treebcd543ce1617078eea7fdb1e5808b0798a826db7 /web/react/components/new_channel.jsx
parent7692e67728cc471a5ac8903a859eba9d82c6429e (diff)
downloadchat-371b1e04eb892109cd44f18230e0247dc5aabe43.tar.gz
chat-371b1e04eb892109cd44f18230e0247dc5aabe43.tar.bz2
chat-371b1e04eb892109cd44f18230e0247dc5aabe43.zip
Changes the word channel to group for priavte groups
Diffstat (limited to 'web/react/components/new_channel.jsx')
-rw-r--r--web/react/components/new_channel.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/new_channel.jsx b/web/react/components/new_channel.jsx
index 93884f6eb..ffcbfd32d 100644
--- a/web/react/components/new_channel.jsx
+++ b/web/react/components/new_channel.jsx
@@ -107,6 +107,11 @@ module.exports = React.createClass({
serverError = <div className='form-group has-error'><label className='control-label'>{this.state.serverError}</label></div>;
}
+ var channelTerm = 'Channel';
+ if (this.state.channelType === 'P') {
+ channelTerm = 'Group';
+ }
+
return (
<div className='modal fade' id='new_channel' ref='modal' tabIndex='-1' role='dialog' aria-hidden='true'>
<div className='modal-dialog'>
@@ -116,7 +121,7 @@ module.exports = React.createClass({
<span aria-hidden='true'>&times;</span>
<span className='sr-only'>Cancel</span>
</button>
- <h4 className='modal-title'>New Channel</h4>
+ <h4 className='modal-title'>New {channelTerm}</h4>
</div>
<form role='form'>
<div className='modal-body'>