From 3614640adcd48411e5cc60bb74b5470f34e38f40 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sat, 24 Sep 2016 04:21:07 -0400 Subject: [PATCH] Show different message for fully uploaded files vs. completed downloads --- js/page/my_files.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/js/page/my_files.js b/js/page/my_files.js index 5cd7415e8..90d073cfa 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -107,7 +107,11 @@ var MyFilesRow = React.createClass({
{ ' ' } - {this.props.completed ? 'Download complete' : (parseInt(this.props.ratioLoaded * 100) + '%')} + {this.props.completed + ? (this.props.isMine + ? 'Published' + : 'Download complete') + : (parseInt(this.props.ratioLoaded * 100) + '%')}
{ pauseLink }
{ watchButton }
@@ -233,9 +237,10 @@ var MyFilesPage = React.createClass({ let {completed, written_bytes, total_bytes, lbry_uri, file_name, download_path, stopped, metadata} = fileInfo; - if (!metadata || seenUris[lbry_uri] || (this.props.show == 'downloaded' && this._filesOwnership[lbry_uri]) || - (this.props.show == 'published' && !this._filesOwnership[lbry_uri])) - { + var isMine = this._filesOwnership[lbry_uri]; + + if (!metadata || seenUris[lbry_uri] || (this.props.show == 'downloaded' && isMine) || + (this.props.show == 'published' && !isMine)) { continue; } @@ -260,7 +265,7 @@ var MyFilesPage = React.createClass({ content.push(); + available={this.state.filesAvailable[lbry_uri]} isMine={isMine} />); } } return (