From d8bd57901e33a7057e26e782e295099ffcc0da89 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Wed, 6 Sep 2017 23:04:13 -0700
Subject: Removing webapp

---
 .../admin_console/remove_file_setting.jsx          | 62 ----------------------
 1 file changed, 62 deletions(-)
 delete mode 100644 webapp/components/admin_console/remove_file_setting.jsx

(limited to 'webapp/components/admin_console/remove_file_setting.jsx')

diff --git a/webapp/components/admin_console/remove_file_setting.jsx b/webapp/components/admin_console/remove_file_setting.jsx
deleted file mode 100644
index ff453d9fc..000000000
--- a/webapp/components/admin_console/remove_file_setting.jsx
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import $ from 'jquery';
-import PropTypes from 'prop-types';
-import React from 'react';
-
-import Setting from './setting.jsx';
-
-export default class RemoveFileSetting extends Setting {
-    static get propTypes() {
-        return {
-            id: PropTypes.string.isRequired,
-            label: PropTypes.node.isRequired,
-            helpText: PropTypes.node,
-            removeButtonText: PropTypes.node.isRequired,
-            removingText: PropTypes.node,
-            fileName: PropTypes.string.isRequired,
-            onSubmit: PropTypes.func.isRequired,
-            disabled: PropTypes.bool
-        };
-    }
-
-    constructor(props) {
-        super(props);
-        this.handleRemove = this.handleRemove.bind(this);
-    }
-
-    handleRemove(e) {
-        e.preventDefault();
-
-        $(this.refs.remove_button).button('loading');
-        this.props.onSubmit(this.props.id, () => {
-            $(this.refs.remove_button).button('reset');
-        });
-    }
-
-    render() {
-        return (
-            <Setting
-                label={this.props.label}
-                helpText={this.props.helpText}
-                inputId={this.props.id}
-            >
-                <div>
-                    <div className='help-text remove-filename'>
-                        {this.props.fileName}
-                    </div>
-                    <button
-                        className='btn btn-danger'
-                        onClick={this.handleRemove}
-                        ref='remove_button'
-                        disabled={this.props.disabled}
-                        data-loading-text={`<span class='glyphicon glyphicon-refresh glyphicon-refresh-animate'></span> ${this.props.removingText}`}
-                    >
-                        {this.props.removeButtonText}
-                    </button>
-                </div>
-            </Setting>
-        );
-    }
-}
-- 
cgit v1.2.3-1-g7c22

