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

Kai Reinhard
16.35.2018 8536692bec03913455a683e062288ea7c96c2f04
borgbutler-webapp/src/components/views/archives/FileListTable.jsx
@@ -3,7 +3,7 @@
import {Table} from 'reactstrap';
import FileListEntry from './FileListEntry';
function FileListTable({entries, search}) {
function FileListTable({archiveId, entries, search}) {
    const lowercaseSearch = search.split(' ')[0].toLowerCase();
    return (
        <Table striped bordered hover size={'sm'} responsive>
@@ -12,13 +12,14 @@
                <th>Mode</th>
                <th>Modified time</th>
                <th>Size</th>
                <th>Path</th>
                <th></th>
                <th>Path</th>
            </tr>
            </thead>
            <tbody>
            {entries
                .map((entry, index) => <FileListEntry
                    archiveId={archiveId}
                    entry={entry}
                    search={lowercaseSearch}
                    key={index}
@@ -29,6 +30,7 @@
}
FileListTable.propTypes = {
    archiveId: PropTypes.string,
    entries: PropTypes.array,
    search: PropTypes.string
};