summaryrefslogtreecommitdiffstats
path: root/web/react/components/edit_channel_purpose_modal.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-11-06 08:13:03 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-11-06 08:13:03 -0500
commit6417d4728dc9351d5bf3180e458be8ce6e1e642f (patch)
tree542b35efce8441ad94b6c21b7a4c3a02ee300d02 /web/react/components/edit_channel_purpose_modal.jsx
parent23a8dbca9ff075464ae071e0fad50c37b2754c1f (diff)
parente29342d4267c81a709cdc19fe992762ae468e0d9 (diff)
downloadchat-6417d4728dc9351d5bf3180e458be8ce6e1e642f.tar.gz
chat-6417d4728dc9351d5bf3180e458be8ce6e1e642f.tar.bz2
chat-6417d4728dc9351d5bf3180e458be8ce6e1e642f.zip
Merge pull request #1321 from hmhealey/plt911
PLT-911 Search autocomplete improvements
Diffstat (limited to 'web/react/components/edit_channel_purpose_modal.jsx')
-rw-r--r--web/react/components/edit_channel_purpose_modal.jsx9
1 files changed, 3 insertions, 6 deletions
diff --git a/web/react/components/edit_channel_purpose_modal.jsx b/web/react/components/edit_channel_purpose_modal.jsx
index 4cb96a3ff..65e8183de 100644
--- a/web/react/components/edit_channel_purpose_modal.jsx
+++ b/web/react/components/edit_channel_purpose_modal.jsx
@@ -3,6 +3,8 @@
const AsyncClient = require('../utils/async_client.jsx');
const Client = require('../utils/client.jsx');
+const Utils = require('../utils/utils.jsx');
+
const Modal = ReactBootstrap.Modal;
export default class EditChannelPurposeModal extends React.Component {
@@ -75,11 +77,6 @@ export default class EditChannelPurposeModal extends React.Component {
title = <span>{'Edit Purpose for '}<span className='name'>{this.props.channel.display_name}</span></span>;
}
- let channelTerm = 'Channel';
- if (this.props.channel.channelType === 'P') {
- channelTerm = 'Group';
- }
-
return (
<Modal
className='modal-edit-channel-purpose'
@@ -93,7 +90,7 @@ export default class EditChannelPurposeModal extends React.Component {
</Modal.Title>
</Modal.Header>
<Modal.Body>
- <p>{`Describe how this ${channelTerm} should be used.`}</p>
+ <p>{`Describe how this ${Utils.getChannelTerm(this.props.channel.channelType)} should be used.`}</p>
<textarea
ref='purpose'
className='form-control no-resize'