summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/remove_file_setting.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-12 16:10:04 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-07-12 16:10:04 -0400
commitab52700aaa76a5623de23cd0156f5dbd9a24e264 (patch)
treec00981cd4644b317207d4f646387c45338c21a1e /webapp/components/admin_console/remove_file_setting.jsx
parentcaef414abea77bf0576aef927c9eaf0f205f9b6f (diff)
downloadchat-ab52700aaa76a5623de23cd0156f5dbd9a24e264.tar.gz
chat-ab52700aaa76a5623de23cd0156f5dbd9a24e264.tar.bz2
chat-ab52700aaa76a5623de23cd0156f5dbd9a24e264.zip
PLT-3624 quick fix remove SAML certificates without saving (#3555)
Diffstat (limited to 'webapp/components/admin_console/remove_file_setting.jsx')
-rw-r--r--webapp/components/admin_console/remove_file_setting.jsx13
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>
);