mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
09.14.2019 3844601419a1f0266f2cc3add0434a828370caa6
Unused code removed.
1 files modified
19 ■■■■■ changed files
borgbutler-webapp/src/components/views/repos/ConfigureRepoPage.jsx 19 ●●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/repos/ConfigureRepoPage.jsx
@@ -20,7 +20,6 @@
    constructor(props) {
        super(props);
        this.handleTextChange = this.handleTextChange.bind(this);
        this.handleRepoConfigChange = this.handleRepoConfigChange.bind(this);
        this.handleCheckboxChange = this.handleCheckboxChange.bind(this);
        this.setRepoValue = this.setRepoValue.bind(this);
@@ -33,12 +32,6 @@
        };
    }
    handleTextChange = event => {
        event.preventDefault();
        this.setState({[event.target.name]: event.target.value});
    }
    handleRepoConfigChange = event => {
        event.preventDefault();
        //console.log(event.target.name + ": " + event.target.value);
@@ -66,7 +59,7 @@
                Configure repository
            </PageHeader>
            <form>
                <FormGroup className={this.props.editExistingRepo ? 'hidden' : null}>
                <FormGroup>
                    <FormLabel length={2}>{'Mode'}</FormLabel>
                    <FormField length={10}>
                        <FormRadioButton name={'mode'} id={'mode1'} label={'Add existing repository'}
@@ -140,14 +133,4 @@
    }
}
ConfigureRepoPage.propTypes = {
    // true: The user wants to edit an already existing borg repository in the config file, if false, the user wants to configure
    // a new repo and add this to the the BorgButler's config file.
    editExistingRepo: PropTypes.bool
};
ConfigureRepoPage.defaultProps = {
    editExistingRepo: false
};
export default ConfigureRepoPage;