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

Kai Reinhard
06.14.2019 8fd6c1f67940d7e76e84e1d31ed9a62af803eee2
Disable cancel button for jobs already requested to cancel.
1 files modified
2 ■■■ changed files
borgbutler-webapp/src/components/views/jobs/Job.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/jobs/Job.jsx
@@ -34,7 +34,7 @@
            content = <Progress color={'info'} value={100}>{job.status}</Progress>
        }
        let cancelDisabled = undefined;
        if (job.status !== 'RUNNING' && job.status !== 'QUEUED') {
        if ((job.status !== 'RUNNING' && job.status !== 'QUEUED') || job.cancellationRequested) {
            cancelDisabled = true;
        }
        return (