summaryrefslogtreecommitdiffstats
path: root/webapp/components/edit_channel_header_modal.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-08-11 09:51:40 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-08-11 21:51:40 +0800
commit33d3818e1fe7b5c3703363c716a0b1040fb91ae6 (patch)
treec5d45c8bce140522b306dfb4d81ae0ce978f275c /webapp/components/edit_channel_header_modal.jsx
parent48741434aa955d93e15e44f207294f0d90c2e0da (diff)
downloadchat-33d3818e1fe7b5c3703363c716a0b1040fb91ae6.tar.gz
chat-33d3818e1fe7b5c3703363c716a0b1040fb91ae6.tar.bz2
chat-33d3818e1fe7b5c3703363c716a0b1040fb91ae6.zip
Add character limit to channel header edit modal (#7179)
Diffstat (limited to 'webapp/components/edit_channel_header_modal.jsx')
-rw-r--r--webapp/components/edit_channel_header_modal.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/edit_channel_header_modal.jsx b/webapp/components/edit_channel_header_modal.jsx
index ef1f68b70..b993fb93c 100644
--- a/webapp/components/edit_channel_header_modal.jsx
+++ b/webapp/components/edit_channel_header_modal.jsx
@@ -85,15 +85,14 @@ class EditChannelHeaderModal extends React.Component {
this.props.channel.id,
this.state.header,
() => {
- this.setState({serverError: ''});
+ this.setState({serverError: '', submitted: false});
this.onHide();
},
(err) => {
if (err.id === 'api.context.invalid_param.app_error') {
this.setState({serverError: this.props.intl.formatMessage(holders.error)});
- } else {
- this.setState({serverError: err.message});
}
+ this.setState({submitted: false});
}
);
}
@@ -189,6 +188,7 @@ class EditChannelHeaderModal extends React.Component {
handlePostError={this.handlePostError}
id='edit_textbox'
ref='editChannelHeaderTextbox'
+ characterLimit={1024}
/>
<br/>
{serverError}