summaryrefslogtreecommitdiffstats
path: root/webapp/components/edit_channel_header_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/edit_channel_header_modal.jsx')
-rw-r--r--webapp/components/edit_channel_header_modal.jsx28
1 files changed, 21 insertions, 7 deletions
diff --git a/webapp/components/edit_channel_header_modal.jsx b/webapp/components/edit_channel_header_modal.jsx
index ea411357d..d7ef1d81f 100644
--- a/webapp/components/edit_channel_header_modal.jsx
+++ b/webapp/components/edit_channel_header_modal.jsx
@@ -129,6 +129,26 @@ class EditChannelHeaderModal extends React.Component {
serverError = <div className='form-group has-error'><br/><label className='control-label'>{this.state.serverError}</label></div>;
}
+ let headerTitle = null;
+ if (this.props.channel.type === Constants.DM_CHANNEL) {
+ headerTitle = (
+ <FormattedMessage
+ id='edit_channel_header_modal.title_dm'
+ defaultMessage='Edit Header'
+ />
+ );
+ } else {
+ headerTitle = (
+ <FormattedMessage
+ id='edit_channel_header_modal.title'
+ defaultMessage='Edit Header for {channel}'
+ values={{
+ channel: this.props.channel.display_name
+ }}
+ />
+ );
+ }
+
return (
<Modal
show={this.props.show}
@@ -136,13 +156,7 @@ class EditChannelHeaderModal extends React.Component {
>
<Modal.Header closeButton={true}>
<Modal.Title>
- <FormattedMessage
- id='edit_channel_header_modal.title'
- defaultMessage='Edit Header for {channel}'
- values={{
- channel: this.props.channel.display_name
- }}
- />
+ {headerTitle}
</Modal.Title>
</Modal.Header>
<Modal.Body>