diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-15 12:26:32 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-15 12:26:32 -0400 |
commit | f7b3731b2b2767b0784e1f2e0ce723cae917c47a (patch) | |
tree | fd00d8da4bcbd671a9b1324dd500d133daf06e19 /webapp/components/admin_console/remove_file_setting.jsx | |
parent | 942ae4c5278e0a3064ef08937063ec66a6a8e990 (diff) | |
parent | ab52700aaa76a5623de23cd0156f5dbd9a24e264 (diff) | |
download | chat-f7b3731b2b2767b0784e1f2e0ce723cae917c47a.tar.gz chat-f7b3731b2b2767b0784e1f2e0ce723cae917c47a.tar.bz2 chat-f7b3731b2b2767b0784e1f2e0ce723cae917c47a.zip |
Merge branch 'release-3.2' into 'master'
Diffstat (limited to 'webapp/components/admin_console/remove_file_setting.jsx')
-rw-r--r-- | webapp/components/admin_console/remove_file_setting.jsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/webapp/components/admin_console/remove_file_setting.jsx b/webapp/components/admin_console/remove_file_setting.jsx index 5a76faae2..9a6266a62 100644 --- a/webapp/components/admin_console/remove_file_setting.jsx +++ b/webapp/components/admin_console/remove_file_setting.jsx @@ -23,28 +23,18 @@ export default class RemoveFileSetting extends Setting { constructor(props) { super(props); this.handleRemove = this.handleRemove.bind(this); - - this.state = { - serverError: null - }; } handleRemove(e) { e.preventDefault(); $(this.refs.remove_button).button('loading'); - this.props.onSubmit(this.props.id, (error) => { + this.props.onSubmit(this.props.id, () => { $(this.refs.remove_button).button('reset'); - this.setState({serverError: error}); }); } render() { - let serverError; - if (this.state.serverError) { - serverError = <div className='form-group has-error'><label className='control-label'>{this.state.serverError}</label></div>; - } - return ( <Setting label={this.props.label} @@ -64,7 +54,6 @@ export default class RemoveFileSetting extends Setting { > {this.props.removeButtonText} </button> - {serverError} </div> </Setting> ); |