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

...
Kai Reinhard
16.55.2018 88c5085ce1689e2fcd0cdaa1bc24dae26d7b60a7
...
3 files modified
21 ■■■■■ changed files
borgbutler-webapp/src/components/views/archives/ArchiveView.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListEntry.jsx 3 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 16 ●●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/ArchiveView.jsx
@@ -23,7 +23,7 @@
    fetchArchive = (force) => {
        let forceReload = false;
        if (force && window.confirm('Are you sure you want to reload the archive file list? This may take a long time...')) {
        if (force && window.confirm('Are you sure you want to reload the archive info? This may take some time...')) {
            forceReload = true;
        }
        this.setState({
borgbutler-webapp/src/components/views/archives/FileListEntry.jsx
@@ -1,13 +1,14 @@
import React from 'react';
import PropTypes from 'prop-types';
import Highlight from 'react-highlighter';
import {humanFileSize} from '../../../utilities/global';
function FileListEntry({entry, search}) {
    return (
        <tr>
            <td className={'tt'}>{entry.mode}</td>
            <td className={'tt'}>{entry.mtime}</td>
            <td className={'tt'}>{entry.size}</td>
            <td className={'tt'}>{humanFileSize(entry.size, true, true)}</td>
            <td className={'tt'}><Highlight search={search}>{entry.path}</Highlight></td>
        </tr>
    );
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -7,7 +7,7 @@
    state = {
        isFetching: false, activeTab: '1',
        fileList : undefined
        fileList: undefined
    };
    componentDidMount = () => {
@@ -58,10 +58,16 @@
                }}
            />;
        } else if (this.state.fileList) {
            content = <React.Fragment>
                <FileListTable
                entries={this.state.fileList}/>
            </React.Fragment>;
            if (this.state.fileList.length > 0) {
                content = <React.Fragment>
                    <FileListTable
                        entries={this.state.fileList}/>
                </React.Fragment>;
            } else {
                content = <React.Fragment>
                    Not yet loaded.
                </React.Fragment>;
            }
        }
        return <React.Fragment>
            {content}