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

Kai Reinhard
16.57.2019 0796dd91a5c209445a1994c44cf0d7066f7d004b
Fetches now also old jobs every 2 seconds (if shown).
1 files modified
8 ■■■■ changed files
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx 8 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
@@ -14,7 +14,7 @@
    componentDidMount = () => {
        this.fetchQueues(false);
        this.interval = setInterval(() => this.fetchQueues(false), 2000);
        this.interval = setInterval(() => this.fetchJobs(), 2000);
    };
    componentWillUnmount() {
@@ -34,6 +34,12 @@
        this.setState({collapseOldJobs: !this.state.collapseOldJobs});
    }
    fetchJobs() {
        this.fetchQueues(false);
        if (this.state.collapseOldJobs) {
            this.fetchQueues(true);
        }
    }
    fetchQueues = (oldJobs) => {
        this.setState({