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

Kai Reinhard
18.45.2018 862ca55f566432191891d8b352404bc01088e804
displays cache status of archives.
1 files modified
8 ■■■■ changed files
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx 8 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
@@ -5,7 +5,7 @@
import {PageHeader} from '../../general/BootstrapComponents';
import {getRestServiceUrl, humanFileSize} from '../../../utilities/global';
import ErrorAlert from '../../general/ErrorAlert';
import {IconRefresh} from "../../general/IconComponents";
import {IconCheck, IconRefresh} from "../../general/IconComponents";
class RepoArchiveListView extends React.Component {
@@ -106,14 +106,20 @@
                            <tr>
                                <th>Archive</th>
                                <th>Time</th>
                                <th></th>
                                <th>Id</th>
                            </tr>
                            {repo.archives.map((archive) => {
                                // Return the element. Also pass key
                                let loaded = '';
                                if (archive.fileListAlreadyCached) {
                                    loaded = <IconCheck />;
                                }
                                return (
                                    <tr key={archive.id}>
                                        <td><Link to={`/archives/${repo.id}/${archive.id}`}>{archive.name}</Link></td>
                                        <td>{archive.time}</td>
                                        <td>{loaded}</td>
                                        <td>{archive.id}</td>
                                    </tr>);
                            })}