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

Kai Reinhard
05.37.2019 7f0e266f8c4e13b9fa30fb8abf80bbd7a0327842
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import {Progress} from 'reactstrap';
 
function Job({job}) {
    let content = undefined;
    if (job.status === 'RUNNING') {
        content = <Progress animated color={'success'} value="100">{job.progressText}</Progress>;
    } else {
        content =  <Progress color={'info'} value="100">{job.status}</Progress>
    }
    return (
        <div>
            <div>{job.description}</div>
            {content}
        </div>
    )
}
 
export default Job;