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

Kai Reinhard
11.53.2019 793edd77d90ffff2502ec1dc9f4d0c3442ebb94c
borgbutler-webapp/src/components/views/config/ConfigurationServerTab.jsx
@@ -35,9 +35,9 @@
            .then((data) => {
                this.setState({
                    loading: false,
                    borgVersion: data.borgVersion,
                    borgBinary: data.borgVersion.borgBinary,
                    borgCommand: data.borgVersion.borgCommand,
                    ...data
                    ...data.serverConfiguration
                })
            })
            .catch((error) => {
@@ -84,12 +84,14 @@
    save() {
        var config = {
            port: this.state.port,
            maxArchiveContentCacheCapacityMb: this.state.maxArchiveContentCacheCapacityMb,
            webDevelopmentMode: this.state.webDevelopmentMode,
            showDemoRepos: this.state.showDemoRepos,
            serverConfiguration: {
                port: this.state.port,
                maxArchiveContentCacheCapacityMb: this.state.maxArchiveContentCacheCapacityMb,
                webDevelopmentMode: this.state.webDevelopmentMode,
                showDemoRepos: this.state.showDemoRepos,
                borgCommand: this.state.borgCommand
            },
            borgVersion: {
                borgCommand: this.state.borgCommand,
                borgBinary: this.state.borgBinary
            }
        };