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

Kai Reinhard
09.56.2019 7ed367b67d27499206d1cfdc441e65635486e6bd
Don't show download icon for items without valid file number.
1 files modified
4 ■■■■ changed files
borgbutler-webapp/src/components/views/archives/FileListEntry.jsx 4 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListEntry.jsx
@@ -113,9 +113,9 @@
        } else {
            path = <Highlight search={this.props.search} id={pathId}>{displayPath}</Highlight>;
        }
        let icon = this.state.downloaded ? <IconCheck/> :
        let icon = entry.fileNumber >= 0 ? (this.state.downloaded ? <IconCheck/> :
            <div className={'btn'} onClick={() => this.download(downloadArchiveId, entry.fileNumber)}>
                <IconDownload/></div>;
                <IconDownload/></div>) : '';
        return (
            <tr>
                <td className={pathCss}>