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

Kai Reinhard
06.09.2019 7a2fa8d98b7e88853ad63e7fdbccc19896ffb036
fetchArchive -> fetchQueues.
2 files modified
13 ■■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx 11 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -86,7 +86,7 @@
                title={'Cannot load Archive file list'}
                description={'Something went wrong during contacting the rest api.'}
                action={{
                    handleClick: this.fetchArchive,
                    handleClick: this.fetchQueues,
                    title: 'Try again'
                }}
            />;
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
@@ -12,8 +12,8 @@
    };
    componentDidMount = () => {
        this.fetchArchive();
        this.interval = setInterval(() => this.fetchArchive(), 2000);
        this.fetchQueues();
        this.interval = setInterval(() => this.fetchQueues(), 2000);
    };
    componentWillUnmount() {
@@ -26,7 +26,7 @@
        });
    }
    fetchArchive = () => {
    fetchQueues = () => {
        this.setState({
            isFetching: true,
            failed: false
@@ -55,7 +55,6 @@
    render() {
        let content = '';
        let todo = '';
        if (this.state.isFetching && !this.state.queues) {
            content = <i>Loading...</i>;
@@ -64,7 +63,7 @@
                title={'Cannot load Repositories'}
                description={'Something went wrong during contacting the rest api.'}
                action={{
                    handleClick: this.fetchArchive,
                    handleClick: this.fetchQueues,
                    title: 'Try again'
                }}
            />;
@@ -94,7 +93,7 @@
    constructor(props) {
        super(props);
        this.fetchArchive = this.fetchArchive.bind(this);
        this.fetchQueues = this.fetchQueues.bind(this);
        this.toggleTestMode = this.toggleTestMode.bind(this);
    }
}