Skip to content

Commit

Permalink
Merge 6059d79 into c105171
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Apr 18, 2017
2 parents c105171 + 6059d79 commit 8436dc9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
20 changes: 16 additions & 4 deletions webapp/components/edit_channel_purpose_modal.jsx
Expand Up @@ -110,6 +110,21 @@ export default class EditChannelPurposeModal extends React.Component {
);
}

let channelPurposeModal = (
<FormattedMessage
id='edit_channel_purpose_modal.body'
defaultMessage='Describe how this channel should be used. This text appears in the channel list in the "More..." menu and helps others decide whether to join.'
/>
);
if (this.props.channel.type === 'P') {
channelPurposeModal = (
<FormattedMessage
id='edit_channel_private_purpose_modal.body'
defaultMessage='This text appears in the \"View Info\" modal of the private channel.'
/>
);
}

return (
<Modal
className='modal-edit-channel-purpose'
Expand All @@ -125,10 +140,7 @@ export default class EditChannelPurposeModal extends React.Component {
</Modal.Header>
<Modal.Body>
<p>
<FormattedMessage
id='edit_channel_purpose_modal.body'
defaultMessage='Describe how this channel should be used. This text appears in the channel list in the "More..." menu and helps others decide whether to join.'
/>
{channelPurposeModal}
</p>
<textarea
ref='purpose'
Expand Down
1 change: 1 addition & 0 deletions webapp/i18n/en.json
Expand Up @@ -1250,6 +1250,7 @@
"edit_channel_header_modal.title": "Edit Header for {channel}",
"edit_channel_header_modal.title_dm": "Edit Header",
"edit_channel_purpose_modal.body": "Describe how this channel should be used. This text appears in the channel list in the \"More...\" menu and helps others decide whether to join.",
"edit_channel_private_purpose_modal.body": "This text appears in the \"View Info\" modal of the private channel.",
"edit_channel_purpose_modal.cancel": "Cancel",
"edit_channel_purpose_modal.error": "This channel purpose is too long, please enter a shorter one",
"edit_channel_purpose_modal.save": "Save",
Expand Down

0 comments on commit 8436dc9

Please sign in to comment.