From 7ed367b67d27499206d1cfdc441e65635486e6bd Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Wed, 09 Jan 2019 20:56:22 +0000
Subject: [PATCH] Don't show download icon for items without valid file number.

---
 borgbutler-webapp/src/components/views/archives/FileListEntry.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/borgbutler-webapp/src/components/views/archives/FileListEntry.jsx b/borgbutler-webapp/src/components/views/archives/FileListEntry.jsx
index 5f7f9cd..f4eda3d 100644
--- a/borgbutler-webapp/src/components/views/archives/FileListEntry.jsx
+++ b/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}>

--
Gitblit v1.10.0