From b8f1447b7ee5e956313d0225af1e4b4f4dd918a2 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Mon, 27 Mar 2017 02:55:51 -0400 Subject: [PATCH] Don't display Downloading bar on published files We handled this just fine until recently; not sure where the regression happened. --- ui/js/component/file-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/js/component/file-actions.js b/ui/js/component/file-actions.js index b9d831e69..c8331e261 100644 --- a/ui/js/component/file-actions.js +++ b/ui/js/component/file-actions.js @@ -179,7 +179,7 @@ let FileActionsRow = React.createClass({ let linkBlock; if (this.state.fileInfo === false && !this.state.attemptingDownload) { linkBlock = ; - } else if (this.state.attemptingDownload || !this.state.fileInfo.completed) { + } else if (this.state.attemptingDownload || (!this.state.fileInfo.completed && !this.state.fileInfo.isMine)) { const progress = this.state.fileInfo ? this.state.fileInfo.written_bytes / this.state.fileInfo.total_bytes * 100 : 0, label = this.state.fileInfo ? progress.toFixed(0) + '% complete' : 'Connecting...',