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

Kai Reinhard
15.35.2019 746d3376c6b11a2202d3c19745bc45ea76c20a94
borgbutler-webapp/src/components/views/config/ConfigurationServerTab.jsx
@@ -58,7 +58,7 @@
            showDemoRepos: true,
            maxArchiveContentCacheCapacityMb: 100,
            redirect: false,
            binary: 'manual'
            borgVersion: null
        };
        this.handleTextChange = this.handleTextChange.bind(this);
@@ -113,7 +113,7 @@
        if (this.state.failed) {
            return <ErrorAlertGenericRestFailure handleClick={this.loadConfig}/>;
        }
        const borgVersion = this.state.borgVersion;
        return (
            <div>
                <form>
@@ -121,12 +121,12 @@
                        <FormLabel>{'Borg command'}</FormLabel>
                        <FormField length={2}>
                            <FormSelect
                                value={this.state.binary}
                                value={borgVersion.binary}
                                name={'binary'}
                                onChange={this.handleTextChange}
                                hint={`Choose your OS and BorgButler will download and use a ready to run borg binary from ${this.state.binariesDownloadUrl} or choose a manual installed version.`}
                                hint={`Choose your OS and BorgButler will download and use a ready to run borg binary from ${borgVersion.binariesDownloadUrl} or choose a manual installed version.`}
                            >
                                {this.state.borgBinaries
                                {borgVersion.borgBinaries
                                    .map((binary, index) => <FormOption label={binary[1]} value={binary[0]}
                                                                        key={index}/>)}
                                <FormOption label={'Manual'} value={'manual'}/>